[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: upgrade problem - global variables
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 18 Mar 2003 08:31:21 -0300
> As promised: a recipe to obtain the C API globals in lua. [...]
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)".
-- Roberto