About Exception

stéphane ducasse ducasse at iam.unibe.ch
Thu Apr 7 09:24:26 UTC 2005


May be the answer...


According to the way how Streams are done in VW, it is a normal 
behavior.
There is an EndOfStreamNotification exception rised when the text 
stream (containing the source code) is read by the parser.

to show this, just do a [Compiler evaluate:'1'] on: Exception do: [ :ex 
| ex inspect. -1 ]

Alexandre



On 7 avr. 05, at 10:55, stéphane ducasse wrote:

> Hi guys
>
> A friend on mine asked me about the following
>
> Compiler evaluate:'1'
> 1
>
> [Compiler evaluate:'1'] on: Exception do: [ :ex | -1 ]
> -1
>
> I do not understand why the exception is raised
>
> [Compiler evaluate:'1'] on: Error do: [ :ex | -1 ]
>
> 1
>
> Of course Exception is mentally for me an abstract class but I do not 
> understand
> why this has an influence.
> Any idea?
>
> Stef
>
>




More information about the Squeak-dev mailing list