thanks ;)

On 2011-07-19, at 17:23, Lukas Renggli wrote:

> Some Smalltalks required it (i.e. VA), that's probably also the reason
> why SUnit uses it. Likely has to do with how they implement exception
> handlers.
> 
> Lukas
> 
> On Tuesday, 19 July 2011, Camillo Bruni <[email protected]> wrote:
>> Can anyone explain me why it would make sense to use #return: in the 
>> following method?
>> 
>> TestCase >> executeShould: aBlock inScopeOf: anExceptionalEvent
>>        ^[aBlock value.
>>           false]
>>                on: anExceptionalEvent
>>                do: [:ex | ex return: true]
>> 
>> I would instinctively replace [:ex | ex return: true] with the much simpler 
>> [:ex | ^ true]..
>> Am I missing something here?
>> 
>> camillo
>> 
>> 
> 
> -- 
> Lukas Renggli
> www.lukas-renggli.ch
> 


Reply via email to