Custom Exponents
Philippe Sigaud
philippe.sigaud at gmail.com
Sun Dec 15 04:52:55 PST 2013
> -----
> 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?
> Side-note: Importing std.stdio implicitly imports std.math, so you
> won't have any errors (boy do I hate public imports where they don't
> belong..).
Ugh. I agree.
How does std.stdio imports std.math?
More information about the Digitalmars-d-learn
mailing list