[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Interfacing lua with C
- From: "jimmyp_gr <jimmyp@...>" <jimmyp@...>
- Date: Thu, 16 Jan 2003 03:31:43 -0000
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.