| [news.eclipse.modeling.mdt.ocl] Re: def expression? |
Hi Ed, I took a def _expression_ from the royal-and-loyal example def : initial : String = self.name.substring(1, 1) and execute it (in the context of an object that has a "name" attribute). I did that in the OCL console as well as in my transformation rules. Either way, I get org.eclipse.ocl.SyntaxException: "inv:" misplaced construct(s) Any idea? The OCL interpreter/environment does really not have to be set up in any certain way to support def-expressions? Joel