Jump to content

Module:Example of lua debugging

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Materialscientist (talk | contribs) at 04:46, 13 November 2022 (Reverted edits by 98.144.100.183 (talk) (HG) (3.4.10)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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