Iterators? (Was: Squeak practical use? ...)

Scott A Crosby crosby at qwes.math.cmu.edu
Thu Jan 31 05:47:52 UTC 2002


On Wed, 30 Jan 2002, Tim Rowledge wrote:

> Scott A Crosby <crosby at qwes.math.cmu.edu> is claimed by the authorities to have written:
>
> >
> > foo: x ifSucces: succBlock ifFail: failBlock
> >    blah1 ifTrue: [ ^succBlock value ]
> >    blah2 ifTrue: [ ^failBlock value ]
> >    succBlock := [ blah . [^sucBlock value]]
>
> Improper code I'm afraid. Can't assign to a parameter.
>

Ok. Unintended error.

foo: x ifSucces: succBlock ifFail: failBlock
   blah1 ifTrue: [ succBlock value ]
   blah2 ifTrue: [ failBlock value ]
   newSuccBlock := [ blah . [sucBlock value]]
   ^self bar: y ifSuccess: newSuccBlock ifFail: failBlock.





More information about the Squeak-dev mailing list