[haXe] === operator fails in Neko

Franco Ponticelli franco.ponticelli at gmail.com
Sun Apr 30 13:01:05 CEST 2006


I can live without === but I think that if it stays (as it is), its
behaviour must be the same for all the three platforms.

2006/4/30, Nicolas Cannasse <ncannasse at motion-twin.com>:
>
> > 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
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20060430/17858528/attachment.htm


More information about the Haxe mailing list