bug-guile
[Top][All Lists]
Advanced

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

Re: gsubr.c too many args error


From: Thien-Thi Nguyen
Subject: Re: gsubr.c too many args error
Date: Fri, 08 Feb 2002 17:01:14 -0800

   From: Bill Schottstaedt <address@hidden>
   Date: Fri,  8 Feb 2002 03:51:54 -0800

   Can I suggest a change in libguile/gsubr.c line 105 from:

       fputs ("ERROR in scm_c_make_gsubr: too many args\n", stderr);

   to

       fprintf (stderr, "ERROR in scm_c_make_gsubr: too many args (%d)
       to %s\n", req + opt + rst, name);

this has been installed (all branches).  thanks for the suggestion.
however...

   Also is it really necessary to call "exit" after this error?

w/o some coherent policy, this cannot be answered easily.  i've added
devel/policy/exceptions.text (HEAD branch) so that when we figure
something out, we can record it there and clean up appropriately.

my guess is that we will decide to restrict `exit' and `abort' to a
small number of well-defined situations, and convert all other handling
to use an internal throw of some sort.

if you (or anyone else) would like to help systematize guile error
handling, i'd be happy to do the exceptions.text scribe work, and
integrate small patches.  (please signal intent on guile-devel first,
thanks.)

thi



reply via email to

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