lua-users home
lua-l archive

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

Roberto Ierusalimschy wrote:
> (Another advantage of using a table for globals: you can change the whole
> global environment with a simple assignment.)

That sounds like a paradox...  a simple assignment to what?  I don't think
the global table variable itself can exist as a global.  For this reason I
suggested a getter function globaltable().  However if it works out that the
implementation can handle a non-constant global table efficiently, then you
could provide for switching with a get/setglobaltable() pair.

-John Belmonte