[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lists with nil play nice for Lua 5.2
- From: roberto@... (Roberto Ierusalimschy)
- Date: Mon, 6 Aug 2007 11:27:16 -0300
> Lua team: what is the downside to making newproxy()
> official?
It would be more difficult to ensure the integrity of C libraries. See
the details of how newproxy is currently implemented. Moreover, it would
allow Lua code to define garbage-collector events; we are not sure this
is a good idea.
On the other hand, we don't see any problem in allowing __len to be
redefined for tables.
-- Roberto