lua-users home
lua-l archive

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


> 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