This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gh_eval_file_with_catch ignoring given handler



eb@via.ecp.fr writes:
> Pardon my ignorance, but in libguile/gh_eval.c:
> 
> gh_eval_file_with_catch (char *scheme_code, scm_catch_handler_t handler)
> {
>   /* FIXME: not there yet */
>   return gh_catch (SCM_BOOL_T, (scm_catch_body_t) eval_file_wrapper,
>                    scheme_code, (scm_catch_handler_t) gh_standard_handler,
>                    scheme_code);
> }
> 
> This function ignores the "handler" parameter, and then, I can't use my
> own.
> 
> I suppose that this is not the expected behavior. Am I wrong ? What if I
> replace "gh_standard_handler" with "handler" ?
> 


I think this is a long-standing bug, I've noticed it before and maybe
even reported it, but submitting a patch now would probably be mroe
effective.

 - Maciej