[Q] Compiler evaluate: question

Derek Brans brans at nerdonawire.com
Wed May 21 18:26:01 UTC 2003


Vladimir, try

Compiler evaluate: textOrString for: nil notifying: aController logged:
false

Where aController implements
    notify: aString
    at: location
    in: sourceStream

(see Compiler>>notify:at: where notification is done)

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 11:11 AM
Subject: Re: [Q] Compiler evaluate: question


> 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