Module:Example of lua debugging

Revision as of 04:46, 13 November 2022 by imported>Materialscientist (Reverted edits by 98.144.100.183 (talk) (HG) (3.4.10))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage edit source

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