[squeak-dev] Re: Exception return: 10 vs 10

stephane ducasse stephane.ducasse at free.fr
Fri Jul 25 09:26:41 UTC 2008


I read several times the ansi before posting and I could not find a  
definitive answer.
I thought that return: had to have something special to be worth its  
existence, but I could not
find it. I thought that return: may clean the
On Jul 23, 2008, at 7:25 AM, Andreas Raab wrote:

> Paolo Bonzini wrote:
>> stephane ducasse wrote:
>>> I'm trying to understand the exact difference between using  
>>> return: and not as a last statement of a on:do: block
>> There is none.  Not using return: was less portable (VSE and GNU  
>> Smalltalk used resume: for the last statement if the exception is  
>> resumable), but with Seaside relying on the ANSI behavior many  
>> dialects are slowly changing.
>
> Hm ... I don't quite recall but didn't ANSI specify that the  
> behavior is undefined unless a specific handler response is invoked?  
> In other words, *unless* you are specific about either #return: or  
> #resume: the result may be implementation dependent?
>
> Cheers,
> - Andreas
>
>




More information about the Squeak-dev mailing list