Module:Example of lua debugging

MyWikiBiz, Author Your Legacy — Friday December 27, 2024
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