I don&#39;t have access to osx.  I wrote those unittests recently, based on what the documentation in std.math said pow should do for the special cases, and they all pass on Windows.  Also, at the same time I did this, I only made modifications to pow() to loosen the types it accepts, not to change the meat of any function, so we&#39;re probably just uncovering bugs that have been around for a long time.<br>
<br>Perhaps osx&#39;s C pow() function is broken like the one on linux and the version(linux) statement in pow() should be changed to include Mac OS also.<br><br><div class="gmail_quote">On Mon, Aug 16, 2010 at 3:30 PM, Andrei Alexandrescu <span dir="ltr">&lt;<a href="mailto:andrei@erdani.com">andrei@erdani.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I replaced lines 3249 and 3250 with:<br>
<br>
    version(OSX) {} else assert(isNaN(pow(one, dinf)));<br>
    version(OSX) {} else assert(isNaN(pow(-one, dinf)));<br>
<br>
to get std.math to unittest on osx.<br>
<br>
<br>
Andrei<br>
_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</blockquote></div><br>