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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 5 14:04:12 PDT 2010


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2010-11-05 14:03:12 PDT ---
I am not saying this is bad or good, but I want to show what Python 2.6.6 does
(the same as D, it seems):

>>> -1**0
-1
>>> pow(-1, 0)
1


(I recall some threads about this behaviour in the Python newsgroups, some
person was not happy of it).

-- 
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