Richard Frith-Macdonald schrieb:

> I added [NSString-decimalValue] to base, as a test shows that it's present in
> MacOS-X Foundation (though it's not in either the documentation or the header
> files).

Thanks!

> Not sure what to do about in aggregate functions.  The documentation
> specifically says they should use doubles ... so perhaps it would be better
> for GDL2 to override the base implementations .. or maybe we could write a 
> test
> to find out if apple actually uses decimal values even though the doc says
> doubles.  Perhaps we should allow more precision than apple anyway.

We need to override NSArray's implementation anyway so it makes no
difference once EOControl is linked.  And I agree that if the
documentation explicitly refers to doubleValue then -base has good
reason to stick to it.

But I'm sure people will find it surprising when they start relying on
on those aggregate functions outside of GDL2 and notice that round(x.5)
will not give them consistent results.  So I would also sympathize with
an NSDecimal implementation.

Cheers.
David


_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to