lua-users home
lua-l archive

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


On Sun, Jul 11, 2010 at 8:56 PM, Florian Weimer <fw@deneb.enyo.de> wrote:
> metatables.  But I wonder if a function for sealing tables would be
> more helpful.  It would set a read-only flag on the table and return a
> setter function which bypasses the read-only flag.

This would be an elegant addition to the language.  You can of course
do these things with proxy tables but there is then an extra lookup
for module access.  Many things can be solved with indirection but
performance does suffer.