[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Metatable __index issues
- From: Eric Tetz <erictetz@...>
- Date: Mon, 18 Aug 2003 15:10:29 -0700 (PDT)
--- Mark Hamburg <firstname.lastname@example.org> wrote:
> The only way to do that in Lua seems to be to use a proxy table
> but that means that every persistent table is now two tables.
Oh, it means more than that. ;) The proxy has limitations. For
instance, you can no longer say "for k,v in mytable", and the proxy
itself is not protected from modification by metatable-unaware
functions like "table.insert". It's a bit of a kludge, no doubt.
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software