[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: comparative functions and "same metamethod" gotcha
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 6 Jun 2014 00:08:35 -0300
> However, it dawned on me that this could be a 5.3 bug. Is that a
> possibility, or is it normal for 2 functions to be the same reference, and
> then for a garbage collection cycle to change that?
I doubt that is happening. Two equal functions will be equal forever.
(What can happen (and is happening) is for the same code sometimes
create two equal functions and sometimes create two different ones.)