This is the mail archive of the guile@sourceware.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: "too many args" error


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


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