std.math.sqrt(real x) && std.math.sqrt(float x) overloads
bearophile
bearophileHUGS at lycos.com
Wed May 9 12:52:56 PDT 2012
Tobias Pankrath:
> Shouldn't this just work?
> ...
> Instead it's
> Error: function std.math.sqrt called with argument types:
> ((int))
> matches both:
> std.math.sqrt(float x)
> and:
> std.math.sqrt(real x)
In theory yes, in practice probably it's better for it to not
compile, given the current situation of the D type system.
Bye,
bearophile
(this is probably one of the less informative answers I've given
recently)
More information about the Digitalmars-d-learn
mailing list