lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> 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