[UI] Compiler messages

Gary Chambers gary at pinesoft.co.uk
Tue Nov 13 17:02:58 UTC 2007


+1 (and more) for no UI bits in the Parser. Exceptions seem the way to go,
after all, no code problems, no exceptions... Means you'll have to catch
them in the interactive parts (more changes...).

> -----Original Message-----
> From: ui-bounces at lists.squeakfoundation.org
> [mailto:ui-bounces at lists.squeakfoundation.org]On Behalf Of Colin Putney
> Sent: 13 November 2007 4:59 PM
> To: Squeak's User Interface
> Subject: Re: [UI] Compiler messages
>
>
>
> On 13-Nov-07, at 6:46 AM, Bill Schwab wrote:
>
> > Is the change set simply an example, or does it address something I
> > missed?
>
> It addresses the Parsers habit of interacting directly with the user
> when it encounters undeclared variables and the like.
>
> >  The exceptions would have to be resumable, right?
>
> Yes, they are resumable.
>
> > I am
> > starting to wonder whether exceptions or events are a good fit, as
> > they
> > both have overhead (especially exceptions??) that might be a problem
> > when loading large change sets.
>
> They only get signaled if the Compiler is invoked in "interactive mode."
>
> > There is still the question of whether we want to simply gag the
> > messages or write something that is a true fix to the mainstream
> > release.  Any ideas?
>
> This code wasn't meant to address the problem you've raised. I was
> just requesting that if you're going to change the way the Compiler
> deals with unresolved references, that you don't continue the
> tradition of interacting directly with the user. Tim suggested using
> exceptions instead, and since the code I had written did use
> exceptions, I posted it.
>
> I imagine that the problem you want to solve will require more
> significant changes to the parser and compiler, and I hope you'll
> refrain from coupling the compiler to the UI.
>
> Colin
> _______________________________________________
> UI mailing list
> UI at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/ui
>



Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com



More information about the UI mailing list