unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Accessing multiple values from C
@ 2011-11-01 15:34 Julian Graham
  2011-11-01 22:57 ` Ludovic Courtès
  2012-01-09 18:54 ` Andy Wingo
  0 siblings, 2 replies; 15+ messages in thread
From: Julian Graham @ 2011-11-01 15:34 UTC (permalink / raw)
  To: Guile Users

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



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-01-18 23:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01 15:34 Accessing multiple values from C Julian Graham
2011-11-01 22:57 ` Ludovic Courtès
2012-01-09 18:54 ` Andy Wingo
2012-01-09 19:00   ` Julian Graham
2012-01-12  4:50     ` Julian Graham
2012-01-15 21:47       ` Ludovic Courtès
2012-01-16  9:05         ` Andy Wingo
2012-01-18  3:15       ` Mark H Weaver
2012-01-18 16:20         ` Andy Wingo
2012-01-18 20:19         ` Ludovic Courtès
2012-01-18 21:01           ` Mark H Weaver
2012-01-18 21:44             ` Ludovic Courtès
2012-01-18 21:47             ` Mark H Weaver
2012-01-18 23:06               ` Mark H Weaver
2012-01-18 21:01           ` Julian Graham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).