Pow operator precedence

Piotr Szturmaj bncrbme at jadamspam.pl
Fri Jan 13 08:56:20 PST 2012


bearophile wrote:
> This is the third time I see people trip on power operator precedence:
> http://d.puremagic.com/issues/show_bug.cgi?id=7268
>
> Some people expect this:
> (-10 ^^ 2)
> To be 100 instead of -100
> (Note: Python here uses the same operator precedences.)

Why x ^^ y is considered _unary_ expression?


More information about the Digitalmars-d mailing list