lua-users home
lua-l archive

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


Wim Couwenberg:
> Bottom line: globals tables are only inherited at function _definition_,
> not at function _call_ (unless of course explicitly changed by a
> setglobals call.)

So global table allow a sort of 'local' globals for a function? Ie, global
variable references in a setglobal-ed function have the same scope as
locals? Sort of do-it-yourself local variables?

*cheers*
Peter Hill.