-
Key: OCL23-30
-
Legacy Issue Number: 15222
-
Status: closed
-
Source: Model Driven Solutions ( Dr. Edward Willink)
-
Summary:
Collection::sum() requires that its T::+() is commutative and associative.
Associativity is necessary for predictable results.
However what if it isn't?
Is there an obligation on the OCL runtime to detect non-associativity and return invalid?
- probably not possible.
Is there a permission on the OCL runtime to detect non-associativity and return invalid?
- difficult to ensure implementation portability
Is there just an informal caution to users that non-associativity may lead to unpredictable results?
Suggest: reword to permit an implementation to return invalid and caution users about unpredictable results.
-
Reported: OCL 2.2 — Fri, 23 Apr 2010 04:00 GMT
-
Disposition: Resolved — OCL 2.3
-
Disposition Summary:
No Data Available
-
Updated: Fri, 6 Mar 2015 20:58 GMT
OCL23 — OCL 2.2 11.7.1 Why must + be associative for Collection::sum()
- Key: OCL23-30
- OMG Task Force: OCL 2.3 RTF