November 03, 2006 [Issue 131] DocComments/Expression -- ^^ logical xor feature request | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=131 ------- Comment #2 from wbaxter@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. -- |
November 03, 2006 [Issue 131] DocComments/Expression -- ^^ logical xor feature request | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=131 smjg@iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg@iname.com ------- Comment #3 from smjg@iname.com 2006-11-03 08:05 ------- Indeed, ? ... : is an adequate substitute for && and ||. So why should this be any different? -- |
Copyright © 1999-2021 by the D Language Foundation