lua-users home
lua-l archive

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


Hi,

> There is a simpler way (which was not in the manual, yet). You simply
> call "getfenv(0)" (`getfenv' is the new name for `getglobals'). Also
> you can change the C API environment (the new name for the `globals' or
> `table of globals') by calling "setfenv(0, newtable)".

Thanks for the update Roberto!  Is this maybe the first example in Lua where
we have to start counting from 0?  :-)

Bye,
Wim