lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: lua on raspberry pi... require() returning nil
From
: Ignacio Burgueño <iburgueno@
...
>
Date
: Fri, 18 Sep 2015 13:13:13 -0300
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
Follow-Ups
:
Re: lua on raspberry pi... require() returning nil
,
John Langley
References
:
lua on raspberry pi... require() returning nil
,
John Langley
Prev by Date:
Re: Lua in other spoken languages?
Next by Date:
Re: Lua in other spoken languages?
Previous by thread:
lua on raspberry pi... require() returning nil
Next by thread:
Re: lua on raspberry pi... require() returning nil
Index(es):
Date
Thread