[m-dev.] for review: add MC++ implementation of library and runtime

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Dec 20 18:06:46 AEDT 2000


On 20-Dec-2000, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> > > +:- pragma foreign_decl("MC++", "
> > >  
> > > +	// This is not defined in the .NET Frameworks.
> > > +
> > > +	#define	ML_FLOAT_LN2		0.69314718055994530941
> > > +").
> > 
> > I don't understand the comment here.
> > Why is the code here different for MC++ than it is for C?
> > The code for C defines ML_FLOAT_E and ML_FLOAT_PI too.
> 
> e and pi are defined in the .NET Math class, but ln2 isn't.
> 
> I used e and pi from the .NET Math class.
> 
> I thought this would be a better choice, since it would be nice if our
> pi corresponded exactly with pi in other languages.

Fine.  Just document this a bit more clearly, please.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list