[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: when do programs set metatable?
- From: Mike Pall <mikelu-0802@...>
- Date: Fri, 8 Feb 2008 20:13:25 +0100
Roberto Ierusalimschy wrote:
> To add another "next" pointer to each userdata would increase memory
> consumption [...]
Probably not feasible here, but FYI:
http://en.wikipedia.org/wiki/XOR_linked_list
> Among other things, this change could open the doors for __gc
> metamethods for tables.
Are you sure you want to open this door? You may never be able to
close it again.
--Mike