-
Key: OCL25-108
-
Legacy Issue Number: 6884
-
Status: open
-
Source: France Telecom R&D ( Mariano Belaunde)
-
Summary:
Suggestion: Define a "switch" collection function, with a sepecific notation, as in:
mylist->switch( iterator | cond1 ? exp1, cond2 ? exp2, , else ? expN)
The expressions cond2 is not evaluated if cond1 returns true and so on. -
Reported: OCL 2.0b2 — Wed, 7 Jan 2004 05:00 GMT
-
Updated: Thu, 8 Oct 2015 14:12 GMT
OCL25 — The notation when nesting "if then else" is too verbose
- Key: OCL25-108
- OMG Task Force: Object Constraint Language 2.5 RTF