[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Globals (more ruminations)
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 12 Jul 2010 09:24:00 +0200
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.