[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Notification of any change to a non-local variable.
- From: Mike Pall <mikelu-0602@...>
- Date: Thu, 23 Feb 2006 02:25:31 +0100
Hi,
Ron Bessems wrote:
> I've looked at chapter 13.4 (table access meta-methods) but it seems
> that those access methods cannot track if a variable already exists,
> so then a proxy table is used, but then we loose the ability to
> iterate over the table.
Yes, proxy tables are the recommended method. And since you
already control the globals -- what's keeping you from replacing
pairs and ipairs with your own functions? Bonus: you get notified
of iteration, too.
Bye,
Mike