[squeak-dev] Re: Exception return: 10 vs 10
Andreas Raab
andreas.raab at gmx.de
Wed Jul 23 05:25:31 UTC 2008
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
|