This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: "too many args" error
- To: Tal Tversky <tal at cs dot utexas dot edu>
- Subject: Re: "too many args" error
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Thu, 11 May 2000 11:14:06 +0200 (MEST)
- cc: guile at sourceware dot cygnus dot com
On Thu, 11 May 2000, Tal Tversky wrote:
> Hello all,
>
> I'm trying to use gh_new_procedure to define a function that has more
> than 10 args (actually it's not my function, I'm building a really
> basic interface to the plplot library). I traced the error back to
> this set of lines in gsubr.c:
>
> if (SCM_GSUBR_MAX < req + opt + rst) {
> fputs("ERROR in scm_make_gsubr: too many args\n", stderr);
> exit (1);
> }
>
> Simply increasing SCM_GSUBR_MAX doesn't solve the problem. Is there a
> way for me to define functions with lots of args? One of the
> functions I want to access from guile has 23 args (!?).
As a workaround (until the problem gets solved - if at all), you could put
your arguments into the rest-arguments list. It's a little bit more
effort in the interface code, though, because you have to extract the
arguments from that list.
Best regards
Dirk Herrmann