Changes discussed in the mailing list.

This commit is contained in:
Moshe Zadka 2001-03-19 19:36:46 +00:00
parent dc244d38be
commit bf80cb4c37
3 changed files with 7 additions and 6 deletions

View File

@ -111,6 +111,9 @@ Open Issues
Will unification of types and classes help with a more straightforward Will unification of types and classes help with a more straightforward
implementations? implementations?
Define an C API that can be used to find out what the representation of an
int is.
Copyright Copyright

View File

@ -89,6 +89,7 @@ Open Issues
Should the // operator be renamed to "div"? Should the // operator be renamed to "div"?
Should the // be made into a function called "div"?
References References

View File

@ -37,15 +37,12 @@ RationalType
floats and complexes. floats and complexes.
The following attributes will be supported: .numerator and The following attributes will be supported: .numerator and
.denominator. The language definition will not define these other .denominator. The language definition will promise that
then that:
r.denominator * r == r.numerator r.denominator * r == r.numerator
In particular, no guarantees are made regarding the GCD or the that the GCD of the numerator and the denominator is 1 and that
sign of the denominator, even though in the proposed the denominator is positive.
implementation, the GCD is always 1 and the denominator is always
positive.
The method r.trim(max_denominator) will return the closest The method r.trim(max_denominator) will return the closest
rational s to r such that abs(s.denominator) <= max_denominator. rational s to r such that abs(s.denominator) <= max_denominator.