Details
Description
An integer type can be declared as Integer[10,0] or Integer[0,10]. The intention was to give the type a sense of direction which then would affect iterating over the range. This design has been rejected since the direction has no bearing on the constraint. The descending iteration aspect will be covered in a coming release where an Iterable type is introduced.
This, in combination with that the current implementation has a bug that turns descending iteration into an ascending iteration (see PUP-5648) made us decide to change the current behavior so that any construct for a Numeric where the range is declared with from > to should yield an error.
Attachments
Issue Links
- relates to
-
PUP-5648 Add Iterable type and runtime object
-
- Closed
-
- links to