lua-users home
lua-l archive

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


Regarding your code:I get a "attempt to inde 'old_meta' (a nil value)
on the fourth line.
> 
> do
>   local meta, getters, setters = {}, {}, {}
>   local old_meta = getmetatable(getglobals())
>   local old_index, old_newindex = old_meta.__index, old_meta.__newindex
> 
>   -- populate getters and setters somehow, probably by getting them
[...]

But still...can I get around the newindex problem to be able to assign
values to my C vars more than once?If not all else is useless.