[Top][All Lists]
[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
- Re: SCM_CALL_N, (continued)
- Re: SCM_CALL_N, Keisuke Nishida, 2001/06/25
- Re: SCM_CALL_N, Marius Vollmer, 2001/06/25
- Re: SCM_CALL_N, Marius Vollmer, 2001/06/25
- Re: SCM_CALL_N, Rob Browning, 2001/06/25
- Re: SCM_CALL_N, Keisuke Nishida, 2001/06/25
- Re: SCM_CALL_N, Marius Vollmer, 2001/06/25
- Re: SCM_CALL_N,
Lars J. Aas <=
- Re: SCM_CALL_N, Dirk Herrmann, 2001/06/26
- Re: SCM_CALL_N, Lars J. Aas, 2001/06/26
- Re: SCM_CALL_N, Rob Browning, 2001/06/26
- Re: SCM_CALL_N, Lars J. Aas, 2001/06/26
- Re: SCM_CALL_N, Neil Jerram, 2001/06/26
- Re: SCM_CALL_N, Dirk Herrmann, 2001/06/26
- Re: SCM_CALL_N, Keisuke Nishida, 2001/06/26
- Re: SCM_CALL_N, Dirk Herrmann, 2001/06/26
- Re: SCM_CALL_N, Keisuke Nishida, 2001/06/26
- Re: SCM_CALL_N, Dirk Herrmann, 2001/06/27