[D-runtime] druntime commit, revision 371

Shin Fujishiro rsinfu at gmail.com
Wed Aug 25 22:03:01 PDT 2010


In any case, the folloing functions (plus *f/*l variants) can't be pure:

double  frexp(double value, int* exp);
double  modf(double value, double* iptr);
double  remquo(double x, double y, int* quo);
double  nan(char* tagp);

The pure attributes need to be removed from at least these functions.
It breaks building druntime on FreeBSD!

src/core/stdc/math.d(494): Error: function core.stdc.math.frexp
(double value, int* exp) is not callable using argument types
(const (real),const (int*))
...etc...


> Are those math routines all really pure?  I thought they might set
> floating-point state flags.
> 
> On Aug 22, 2010, at 5:13 PM, dsource.org wrote:
> 
> > druntime commit, revision 371
> > 
> > 
> > user: andrei
> > 
> > msg:
> > 64-bit compatibility work
> > 
> > http://www.dsource.org/projects/druntime/changeset/371
> > 
> > _______________________________________________
> > D-runtime mailing list
> > D-runtime at puremagic.com
> > http://lists.puremagic.com/mailman/listinfo/d-runtime
> _______________________________________________
> D-runtime mailing list
> D-runtime at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/d-runtime


More information about the D-runtime mailing list