lua-users home
lua-l archive

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


On 10 May 2016 at 18:00, Sean Conner <sean@conman.org> wrote:
>   I think he wants something like:
>
>         global x        -- define a global x
>         function foo(a,b)
>           local c       -- define a local variable
>           c = a * b + y -- compile time error---y not defined
>         end


what about just removing the implicit _ENV reference?

-- 
Javier