[Issue 5174] -x ^^ 0 returns -1

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 5 13:27:12 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5174


Iain Buclaw <ibuclaw at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4
             Status|NEW                         |RESOLVED
                 CC|                            |ibuclaw at ubuntu.com
         Resolution|                            |FIXED
           Severity|major                       |minor


--- Comment #1 from Iain Buclaw <ibuclaw at ubuntu.com> 2010-11-05 13:26:12 PDT ---
Hmm... actually, I think not now.

Part of the confusion was that it gets parsed down like so:

=>  -3 ^^ 0
=>  -(3 ^^ 0)
=>  -(1)


When I expected it to be:

=>  -3 ^^ 0
=>  ((-3) ^^ 0)
=>  (1)


I'll assume that this behaviour is normal, sorry for the noise. :~)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list