Please rid me of this goto

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 23 12:11:26 PDT 2016


On Thursday, 23 June 2016 at 18:49:56 UTC, ketmar wrote:
> On Thursday, 23 June 2016 at 18:35:23 UTC, jmh530 wrote:
>> You're thinking of pow in std.math. I don't see 
>> opBinary!("^^") anywhere in there. I only see ^^ in comments.
>
> the "^^" is very special, 'cause it is the one and only thing 
> that compiler recognizes as "function call" in expression 
> parsing, and generates call to std.math.pow. a freakin' wart.

It is also has different associativity, and is one of my favorite 
gotcha :

| is bitwize or. || is binary or.
& is bitwize and. && is binary and.
^ is bitwize xor. ^^ is... no, never mind.



More information about the Digitalmars-d mailing list