typeinfo comparison - 'is' or '=='?
Bruno Medeiros
brunodomedeirosATgmail at SPAM.com
Sun May 7 04:15:33 PDT 2006
Anders F Björklund wrote:
>> So my question is: Am I wrong, or is the code in phobos/std/boxer.d
>> and phobos/std/stream.d wrong?
>
> Well, not "wrong" - it is just not portable ? But changing it from 'is'
> over to use '==' instead would make it work in more places than it does.
>
> So I think that Phobos should be changed.
>
> --anders
Yet, that would make the comparison slower, just because of a compiler
technology limitation, no? That doesn't sound good to me.
--
Bruno Medeiros - CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d
mailing list