guile-devel
[Top][All Lists]
Advanced

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

Re: SCM_CALL_N


From: Lars J. Aas
Subject: Re: SCM_CALL_N
Date: Tue, 26 Jun 2001 15:50:29 +0200
User-agent: Mutt/1.2.5i

On Tue, Jun 26, 2001 at 01:46:33AM +0200, Marius Vollmer wrote:
: Additionally, what about
: 
:     scm_call_n (proc, n, ...);
:     scm_apply_n (proc, n, ...);
: 
: where the number of arguments is given explicitely.

I'm more fan of terminating the end of the arglist than counting the
args I've given and updating the count if I change something.  More
convenience - less efficience?  Both systems can be provided, of course.

  SCM scm_va_apply( proc, ... ); /* decl */

  scm_va_apply( proc, arg1, arg2, [...], SCM_EOL ); /* usage */

Another thing about varargs is that you should probably set up vararg
functions as mere wrappers for functions working on the va_list datatype.
If you don't, you can't wrap those functions because you can't expand the
va_list data into the ... positions.  At least I haven't figured out
how...

  Lars J



reply via email to

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