[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: upgrade problem - global variables
- From: "Wim Couwenberg" <w.couwenberg@...>
- Date: Tue, 18 Mar 2003 16:37:45 +0100
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