lua-users home
lua-l archive

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


> There is also a compatibility problem for the "global function foo ...
> end" syntax. This code would no longer work as expected:
> 
> local foo;
> function foo () end
> 
> (The local foo would be a function in 5.1 and nil in 5.2.)

No. foo is resolved lexically as local in both cases.