opPow, opDollar

Walter Bright newshound1 at digitalmars.com
Sat Nov 7 01:56:09 PST 2009


Don wrote:
> A little while ago I said I'd create a patch for ^^ as an 
> exponentiation. A couple of people had requested that I make a post to 
> the ng so they'd know when it happens. Here it is.
> 
> This is opPow(),  x ^^ y
> 
> http://d.puremagic.com/issues/show_bug.cgi?id=3481

I don't understand the rationale for an exponentiation operator. It 
isn't optimization, because pow() could become an intrinsic that the 
compiler knows about. pow() is well known, ^^ isn't. (Fortran uses **)



More information about the Digitalmars-d mailing list