Legacy Issue Number: 2018
Summary: Infix operators like "+" and "<" etc. are defined for built-in OCL types.
It is not explained whether you can
use these for user defined types. The proposal is to allow infix notation
for all of the
operators defined in OCL for used-defined types as well. If someone
defines the operation
"+(p : Person)"
on type Person, this can be used in OCL by
somePerson + anotherPerson.
instead of just by
The OCL specification is not clear whether this is allowed or not.
Reported: UML 1.1 — Wed, 30 Sep 1998 04:00 GMT
Disposition: Resolved — UML 1.2
Clarified in UML 1.3.
Updated: Fri, 6 Mar 2015 21:36 GMT