M\_LUA: local M = {} local function M:checkLevel(lvl) print(tostring(lvl) -- lvl = NIL local lvl = lvl; print(tostring(lvl)); -- lvl = NIL end MAIN\_LUA: local M = require = ("M"); -- main function --........ M.checkLevel(1) local Level2 = 2; M.checkLevel(Level2); --........
checkLevel(1) and checkLevel(Level2) both print that lvl(M_Lua) is NIL. Why?
THANKS!