[Top][All Lists]

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

Re: load-port error?

From: Martin Grabmueller
Subject: Re: load-port error?
Date: Sat, 06 Jan 2001 09:51:22 +0100

> From: Stefan Petersen <address@hidden>
> Date: Thu, 4 Jan 2001 23:43:09 +0100 (CET)
> I'm trying to load a scheme file from a c-program. Since I want to catch
> the errors and then continue as nothing happened instead of bailing out,
> it is done in the following manner:
> (gh_catch (SCM_BOOL_T,
>            (scm_catch_body_t) gh_eval_file, filename,
>          (scm_catch_handler_t) load_error_handler, filename)
> But how do I now _where_ in the loaded file the error has happened?

Exactly the problem I stumbled across yesterday :)

> I tried to use port-column and port-line and getting port from
> current-load-port, but current-load-port returned #f.

I think current-load-port is only defined during the loading
operation, so when do you try to get at it?  In the handler?

> Question 1) Is there a bug in current-load-port?
> Question 2) Is there an alternative to do what I want? I want to give
> proper error msgs and not bail out.


Martin Grabmueller              address@hidden  address@hidden on EFnet

reply via email to

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