[dmd-internals] d2 64 bit update

Brad Roberts braddr at puremagic.com
Thu Dec 23 13:16:29 PST 2010


On Thu, 23 Dec 2010, Don Clugston wrote:

> On 23 December 2010 22:03, David Simcha <dsimcha at gmail.com> wrote:
> >
> > On Thu, Dec 23, 2010 at 3:52 PM, Brad Roberts <braddr at puremagic.com> wrote:
> >>
> >> 2) implement the asm code in std/math.d.
> >
> > Failing this, IMHO all math functions that don't already (I'm not sure how
> > many don't) should have a portable implementation (which could be just
> > calling C) that meets all requirements (safe, pure, nothrow, etc.)
> 
> The problem is, the C functions are *not* pure. They modify errno.
> But, you can just lie -- put  pure nothrow @safe{} around the C
> functions in core.stdc.math.
> (I wouldn't want that to be included in an official release, but it's
> no problem for testing).

Could be done, but they're not blocking issues yet.. there's pleanty of 
other things to work through still.  If I do get blocked, it's what I'll 
do.  But like you said, it's stop gap at best.

Later,
Brad


More information about the dmd-internals mailing list