-
Key: OCL21-211
-
Legacy Issue Number: 6885
-
Status: closed
-
Source: France Telecom R&D ( Mariano Belaunde)
-
Summary:
This is to avoid using the unreadable and unfriendly "let in " notation.
{"Irak","Afganifsthan"}
Suggestion: Use the result of a variable initialization as in:
if (let c = self.address)="" then "UNKNOWN"
else if c.includes(Set) then "DANGEROUS"
else "OK" endif endif endif -
Reported: OCL 2.0b2 — Wed, 7 Jan 2004 05:00 GMT
-
Disposition: Resolved — OCL 2.1
-
Disposition Summary:
OCL 2.3 relaxed a VariableDeclarationCS to permit the typeCS to be omitted and deduced from the initializer.
Disposition: Closed, no change -
Updated: Fri, 6 Mar 2015 20:58 GMT