Changes discussed in the mailing list.
This commit is contained in:
parent
dc244d38be
commit
bf80cb4c37
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue