On 20 July 2012 08:37, Leo Razoumov <slonik.az@xxxxxxxxx> wrote: > On Thu, Jul 19, 2012 at 5:39 AM, Mike Pall <mike-1207@xxxxxxxxxx> wrote: >> Francesco Abbate wrote: >>> These are just some quite straightforward suggestions but I strongly >>> advice to remove the string equality feature of enumerations. >> >> No. >> >> --Mike > > Mike, > what is your response to non-transitivity of the == operation pointed > out by Francesco? > > function crazyMe(a,b,c) > if a==b and b==c and a ~= c then > print("Ahh...losing my mind...") > end > end > > --Leo-- > == isn't guaranteed to be transitive You can easily end up with the same behaviour when writing an __eq metamethod