[Issue 1721] std.math.nextafter should be backported to D1 Phobos

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 9 16:15:06 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1721


wbaxter at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |normal




------- Comment #2 from wbaxter at gmail.com  2007-12-09 18:15 -------
Yes it changes the behavior.  On Windows it would go from being "Unimplemented
error" in all cases to actually doing something.  That's the part I was
suggesting be backported.  I agree the backport can maintain the exact same
code for version(linux) and do something as close as possible on other
platforms.

In any event it is definitely some sort of bug that a function in std.math
throws undocumented NotImplemented exceptions on a platform-specific basis. 
scalebn, lrint, lround, remquo, and nextafter all do this and none of them is
documented as unconditionally throwing an exception on any platform.


-- 



More information about the Digitalmars-d-bugs mailing list