Issue 7545: sub evaluations (ocl2-rtf) Source: OpenModeling (Mr. Jos Warmer, jos.warmer(at)openmodeling.nl) Nature: Uncategorized Issue Severity: 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’ Resolution: yes Revised Text: In 10.3.2.14 IterateExpEval replace inv: let bindings: Sequence( NameValueBindings ) = by inv: let bindings: Sequence( NameValueBinding ) = Actions taken: June 10, 2004: received issue December 23, 2013: closed issue Discussion: End of Annotations:===== s is issue # 7545 sub evaluations 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.