[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie seeks guiding hands.

From: Gary Benson
Subject: Re: Newbie seeks guiding hands.
Date: Thu, 15 Mar 2001 11:41:53 +0000 (GMT)

> > From: Gary Benson <address@hidden>
> > Date: Thu, 15 Mar 2001 10:35:09 +0000
> > 
> > The only problem I can see with this method -- effectively translating
> > rcalc's minilanguage into Scheme and evaluating it - is the error
> > reporting. Rcalc is supposed to be a nice, user friendly program, and
> > one facet of that is that it makes nice, descriptive error
> > messages.Whether this is possible depends really on how much
> > information you can get out of the Guile engine.
> I think the error messages are sufficient.  You will get error
> messages about unbound variables, wrong number/type of arguments,
> division by zero and things like that.

Can you control which stream they are printed on? Having them appear on
stderr would be bad news...

> > One further question I thought of: how does Guile handle
> > internationalisation? Specifically of messages displayed by the Scheme
> > part of rcalc. This may be a question that could be handled by poking
> > aroung in Gnucash (since rcalc is a GNOME program as well), but if
> > anyone has any `high-level' knowledge then that would be welcome.
> Currently, Guile does not bother with i18n at all.  There were
> discussions and plans about supporting multibyte strings internally a
> while ago, but I think so far there was no consensus about how to
> handle things like that.  Error messages are not localized at all.

Hmmm. That is a shame. Is it possible to catch the messages before they
are printed? Some kind of exception handling would be my favourite way,
like the try{}catch{} blocks of C++ and Java.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]