lua-users home
lua-l archive

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


Hi,

> Also
> you can change the C API environment (the new name for the `globals' or
> `table of globals') by calling "setfenv(0, newtable)".

A simple script doing a setglobals(0, table) call gives an error "cannot
change global table of given function."  Embedding this call inside another
function gives the same error.  Am I doing something wrong or is this not
(yet) supported?

Bye,
Wim