[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3 changes to .__eq
- From: Tim Hill <drtimhill@...>
- Date: Sun, 12 Jul 2015 11:20:11 -0700
> On Jul 12, 2015, at 7:03 AM, Peter Aronoff <telemachus@arpinum.org> wrote:
>
>
> The reason the difference matters to me is that someone who writes a random or
> otherwise noncommutative method is (definitely) doing it to themselves. But at
> least in previous versions of Lua, the language required basic safeguards by
> requiring that both operands "share the same metamethod".[1]
>
> Thanks, Peter
>
You can of course simulate this behavior from the metamethod.
—Tim