lua-users home
lua-l archive

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

Am 19.07.2018 um 15:37 schrieb Luiz Henrique de Figueiredo:
Roberto once suggested that globals have to be declared as well. So you have
to declare which globals you want to use, and if you declare no globals at
all, Lua would act like it does now (allow any access).
See also

That is quite interesting. But this solution (if I understand it correctly) depends on a Lua function declared somewhere else. So Lua files now depend on each other at parse time. Currently you can parse each Lua file by itself. We actually use that feature to load pre-compiled scripts to embedded systems at runtime.