Module:Example of lua debugging

MyWikiBiz, Author Your Legacy — Thursday April 18, 2024
Revision as of 21:29, 15 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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