www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 131] New: DocComments/Expression -- ^^ logical xor feature request

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=131

           Summary: DocComments/Expression -- ^^ logical xor feature request
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: braddr puremagic.com


Copied from wiki4d as it makes a lot of sense from a completeness and
consistency standpoint:

The <nowiki>XorXor</nowiki> (^^) operator would relate to the
<nowiki>OrOr</nowiki> "||" and <nowiki>AndAnd</nowiki> "&&" operators in the
same way that the bit wize xor "^" operator relates to bit wize Or "|" and And
"&" 

if (paper ^^ plastic)
{
    bag(items);
}


-- 
May 06 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=131


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Comment #1 from bugzilla digitalmars.com  2006-05-25 04:30 -------
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)


-- 
May 25 2006