lua-users home
lua-l archive

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


Yes! That was exactly what I was doing. Thank you SO MUCH. I'm definitely a newbie and should have qualified my question that way. 

Thank you again! 

- J 

On Fri, Sep 18, 2015 at 12:13 PM Ignacio Burgueño <iburgueno@gmail.com> wrote:
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