lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:
> 
> >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.

Oh, yes, I know the names "a priori". But this way EVERY time I use a
global variable the tag method is called...

By the way, WHY are you removing the getglobal/setglobal methods? Just
curious...

Regards

Oscar Lazzarino