lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi John. Since you mention using the REPL, could it be that you're assigning the return of require to a local?

> local m = require("m")

If that's the case, bear in mind that each line you enter in the REPL is run in a new scope.
See "Why are local variables difficult in the interactive interpreter" here: http://lua-users.org/wiki/ScopeTutorial