[Q] Compiler evaluate: question

Vladimir Janousek janousek at fit.vutbr.cz
Wed May 21 18:11:02 UTC 2003


Unfortunately it does not help for example in this case:

    [ Compiler evaluate: 1 asCharacter asString ] ifError: []

SyntaxError window apeaers.

(Since the string is a result of decryption in my case, even such
situations could be possible.)

Vladimir



Derek Brans wrote:
> How about the usual error handling:
> 
> [x := Compiler evaluate: 'blah blah'] ifError: [do something else]
> 
> 
> Derek Brans
> Nerd on a Wire
> Web design that's anything but square
> http://www.nerdonawire.com
> phone: 604.874.6463
> mailto: brans at nerdonawire.com
> 
> ----- Original Message -----
> From: "Vladimir Janousek" <janousek at fit.vutbr.cz>
> To: "The general-purpose Squeak developers list"
> <squeak-dev at lists.squeakfoundation.org>
> Sent: Wednesday, May 21, 2003 10:32 AM
> Subject: [Q] Compiler evaluate: question
> 
> 
> 
>>Hello Squeakers,
>>
>>I'd like to know some good way how to handle syntax error quietly in
>>
>>    x := Compiler evaluate: 'blah blah'.
>>
>>Unfortunately it seems that it does not raise any kind of exception.
>>
>>Thanks in advance,
>>
>>Vladimir
>>



More information about the Squeak-dev mailing list