[phobos] Bug 4455: Taking sqrt of an integer

David Simcha dsimcha at gmail.com
Tue Jul 13 14:00:14 PDT 2010


A related question:  Why do we even have both an sqrt(float) and an
sqrt(real) in the first place?

On Tue, Jul 13, 2010 at 4:58 PM, David Simcha <dsimcha at gmail.com> wrote:

> I just submitted a bug report (Bug 4455;
> http://d.puremagic.com/issues/post_bug.cgi) because std.math doesn't let
> you take the square root of an integer w/o an explicit cast.  This has been
> a subtle annoyance to me for ages.  Is it ok if I just fix this, or is there
> some reason I'm not aware of (i.e. other than a simple oversight) why sqrt()
> doesn't already forward integers to sqrt(real)?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20100713/7decde25/attachment.html>


More information about the phobos mailing list