[Top][All Lists]

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

Re: Accessing multiple values from C

From: Andy Wingo
Subject: Re: Accessing multiple values from C
Date: Mon, 09 Jan 2012 19:54:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)


On Tue 01 Nov 2011 16:34, Julian Graham <address@hidden> writes:

> I was playing around with some C code that uses the new R6RS
> bytevector ports, and I noticed that there doesn't seem to be an easy
> way (a la `let-values' or `receive') to access multiple return values
> from C.  I've resorted to doing:
>   scm_struct_ref (foo, SCM_INUM0);
> ...which is almost certainly not future-proof.  All I want to do is
> access these values as a pair or list.  Is there a Right Way to do
> that?

Not yet.  You interested in adding scm_c_value_ref (SCM, size_t) to the
API, and documentation to api-control.texi?  If you do it soon, it
will make it into 2.0.4.


reply via email to

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