[Issue 131] DocComments/Expression -- ^^ logical xor feature request
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 3 05:23:46 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=131
------- Comment #2 from wbaxter at gmail.com 2006-11-03 07:23 -------
(In reply to comment #1)
> A request for this operator often comes up in the C/C++ forums. The general
> consensus is that the need for this comes up relatively rarely, and the ==
> operator can fill the role adequately, as in:
>
> (paper != 0) == (plastic != 0)
>
The funny thing is that this proposed replacement is wrong. It should be
(paper != 0) != (plastic != 0)
That the creator of the D language made such a mistake, and that it has stood
for many months without comment, suggests to me that maybe ^^ is not such a bad
idea after all.
--
More information about the Digitalmars-d-bugs
mailing list