[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.2: equality for closures
- From: Peter Cawley <lua@...>
- Date: Tue, 28 Jun 2011 21:22:19 +0100
On Tue, Jun 28, 2011 at 9:15 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
> Note, as comment says, the object can not be table — tables can be
> changed, and, with Lua dynamic type system, this *will* lead to weird
> bugs, where unique_object() result is accidentally used instead of a
> table.
And a table given the metatable of {__newindex = error, __metatable =
false}, thus making it immutable, isn't acceptable?