-
Key: OCL21-247
-
Legacy Issue Number: 7545
-
Status: closed
-
Source: OpenModeling ( Jos Warmer)
-
Summary:
37. – [1] All sub evaluations have a different environment. The first sub evaluation
– will start with an environment in which all iterator variables are bound to
– the first element of the source, plus the result variable which is bound to
– the init expression of the variable declaration in which it is defined.
context IterateExpEval
inv: let bindings: Sequence( NameValueBindings ) =
iterators->collect( i |
NameValueBinding( i.varName, source->asSequence()->first() ))
in
bodyEvals->at(1).environment = self.environment->addAll( bindings )
->add( NameValueBinding( result.name, result.initExp.resultValue ))
==> ’NameValueBindings’ should be ’NameValueBinding’ -
Reported: OCL 2.0b2 — Thu, 10 Jun 2004 04:00 GMT
-
Disposition: Resolved — OCL 2.1
-
Disposition Summary:
yes
-
Updated: Fri, 6 Mar 2015 20:58 GMT