opPow, opDollar

Matti Niemenmaa see_signature at for.real.address
Sat Nov 7 06:51:41 PST 2009


Don wrote:
> Yes, ^^ hasn't been used for exponentiation before. Fortran used ** 
> because it had such a limited character set, but it's not really a 
> natural choice; the more mathematically-oriented languages use ^. 
> Obviously C-family languages don't have that possibility.

Haskell has three exponentiation operators in the standard library: ^, 
^^, and **. They are for non-negative integral exponents, integral 
exponents, and floating-point exponents respectively.



More information about the Digitalmars-d mailing list