Difference between revisions of "Module:Example of lua debugging"

MyWikiBiz, Author Your Legacy — Saturday September 06, 2025
Jump to navigationJump to search
(Pywikibot 6.4.0)
 
(No difference)

Latest revision as of 21:29, 15 July 2021

Usage

Used as an example in Help:Lua debugging#Without changing the code


local p = {}
p.Hello = 'Hello'
function p.calc(num)
   return num
end
function p.sum_mult(num)
   return num + num, num * num
end
function p.mtable(num)
   return {num, num+1}
end
return p