[phobos] Bug 4455: Taking sqrt of an integer

David Simcha dsimcha at gmail.com
Tue Jul 13 13:58:23 PDT 2010


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/5bef6cb7/attachment.html>


More information about the phobos mailing list