-
Key: UML14-971
-
Legacy Issue Number: 3142
-
Status: closed
-
Source: OpenModeling ( Jos Warmer)
-
Summary:
When an enumeration constant is used, it has to be preceded by the
hash '#' sign. While this is not strictly necessary, it certainly
makes parsing easier and, therefore, can stand as it is.However, the need for the same hash characters in the definition of
the enumeration types, like inenum
{ #male, #female }is what the OCL grammar currently requires and in this context
the hash characters should probably be abolished, because:- Their presence does not give anything significant to user
because name conflicts can't happen inside the enumeration type
definition. Everything inside the curly brackets {} is enumeration
constants. - Normally, one can try to copy-paste some text between UML and OCL
parts of the class model. This is made a bit tricky, because UML and
OCL use
different syntax for the enumeration types. It would
be nice of OCL could adopt the UML syntax.
- Their presence does not give anything significant to user
-
Reported: UML 1.2 — Fri, 17 Dec 1999 05:00 GMT
-
Disposition: Resolved — UML 1.3
-
Disposition Summary:
No Data Available
-
Updated: Fri, 6 Mar 2015 21:37 GMT