lua-users home
lua-l archive

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


>I have these "special" global variables, which form the execution
>environment for the script. These variables are very expensive to
>compute, and they are not always required.
[...]
>Can this scheme be implemented without setglobal/getglobal?

If you know the names of the "special" variables, then yes: use the gettable
tag method on the global table and test for the special names.
--lhf