Hi, On Tue 01 Nov 2011 16:34, Julian Graham <jool...@gmail.com> 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. Andy -- http://wingolog.org/