Please rid me of this goto

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 23 11:41:48 PDT 2016


On Thu, Jun 23, 2016 at 06:35:23PM +0000, jmh530 via Digitalmars-d wrote:
> On Thursday, 23 June 2016 at 18:20:00 UTC, H. S. Teoh wrote:
> > On Thu, Jun 23, 2016 at 02:05:07PM -0400, Andrei Alexandrescu via
> > Digitalmars-d wrote:
> > > On 06/23/2016 01:34 PM, H. S. Teoh via Digitalmars-d wrote:
> > > > I don't understand why that goto is necessary.
> > > 
> > > Eh, thank you all who set me straight! I've been in my head for
> > > too long. So where is the current implementation of "^^"?
> > 
> > AFAIK, std.math.
> > 
> 
> You're thinking of pow in std.math. I don't see opBinary!("^^")
> anywhere in there. I only see ^^ in comments.

The compiler lowers ^^ to std.math.pow.  A decision which has sparked
some debate in the past.


T

-- 
"No, John.  I want formats that are actually useful, rather than
over-featured megaliths that address all questions by piling on
ridiculous internal links in forms which are hideously over-complex." --
Simon St. Laurent on xml-dev


More information about the Digitalmars-d mailing list