[haXe] === operator fails in Neko
Nicolas Cannasse
ncannasse at motion-twin.com
Sun Apr 30 12:39:05 CEST 2006
> In Neko (works fine in Flash and Javascript) the test
>
> "a" === "a" returns false
>
> I don't know if this is a bug or intended but is at least inconsistent.
Yes, it's normal.
I wonder if it should be fixed or not.
The meaning of === in that case does give some hint about implementation
details but doesn't make so much sense.
The following would work, which is I would say the "real" meaning of
physical comparison :
var a = "a";
var b = "a";
trace(a === a); // true
trace(a === b); // false
trace(a == b); // true
Nicolas
More information about the Haxe
mailing list