guile-user
[Top][All Lists]
Advanced

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

Accessing multiple values from C


From: Julian Graham
Subject: Accessing multiple values from C
Date: Tue, 1 Nov 2011 11:34:08 -0400

Hey all,

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?


Thanks,
Julian



reply via email to

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