Custom Exponents

Marco Leise Marco.Leise at gmx.de
Sun Dec 15 06:12:17 PST 2013


Am Sun, 15 Dec 2013 13:52:55 +0100
schrieb Philippe Sigaud <philippe.sigaud at gmail.com>:

> > -----
> > void main()
> > {
> >     int a = 2, b = 2;
> >     auto c = a ^^ b;
> > }
> > -----
> >
> > test.d(6): Error: must import std.math to use ^^ operator
> 
> ?? The ^^ operator is defined in std.math?

dmd lacks a native implementation of ^^ and replaces it with pow() or something.

-- 
Marco



More information about the Digitalmars-d-learn mailing list