[Top][All Lists]

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

Re: [dev-serveez] guile switch

From: Martin Grabmueller
Subject: Re: [dev-serveez] guile switch
Date: Wed, 11 Apr 2001 11:18:32 +0200

> From: stefan <address@hidden>
> Date: Tue, 10 Apr 2001 19:48:44 +0200 (CEST)
> On Mon, 9 Apr 2001, Martin Grabmueller wrote:
> > Guile provides
> > 
> > SCM gh_eval_file_with_catch(const char *scheme_code, scm_catch_handler_t 
> > handler);
> Well, I scribbled down an exception handler stating
> exception: misc-error: (list end of file in  (#<undefined>) #f)
> when parsing the former serveez.cfg (sizzle code).
> Why is the scm_current_load_port() undefined within the exception handler
> ?

This is a problem which popped up on the Guile lists before.  To be
honest: I don't know.

> Does the gh_eval_file_with_catch() return the value I return in the
> exception handler and what does it return on success ? For now I return
> SCM_UNSPECIFIED in the exception handler: Is this value different from the
> success case ? I noticed the scm_internal_catch() routine to return
> SCM_EOL on success... Is SCM_EOL == SCM_UNSPECIFIED ???

The result of gh_eval_file_with_catch is SCM_UNSPECIFIED on success,
and the result of the catch handler otherwise.  So for your case,
there is no difference.



reply via email to

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