|
If you want to use something from the outer environment, you can store it and use it. This is precisely the same as using module() without package.seeall in Lua 5.1.
On 1 Aug 2010 20:31, "phlnc8" <phlnc8@gmail.com> wrote:
>> Probably something like this:
>>
>> local _ENV={}
>> function f1() ... end
>> function f2() ... end
>> ...
>> return _ENV
>>
>
> In that case, globals (builtins) cannot be used within definitions!?!
> Did I miss something?