From: Andy Wingo <wingo@pobox.com>
To: David Kastrup <dak@gnu.org>
Cc: 11764-done@debbugs.gnu.org
Subject: bug#11764: Missing C API doc for accessing unknown number of values
Date: Wed, 04 Jul 2012 17:52:37 +0200 [thread overview]
Message-ID: <87fw97a5h6.fsf@pobox.com> (raw)
In-Reply-To: <87pq8r74w7.fsf@fencepost.gnu.org> (David Kastrup's message of "Fri, 22 Jun 2012 17:17:12 +0200")
Hi David,
Thanks for the report. I've added this somewhat strangely named
function:
-- C Function: size_t scm_c_nvalues (SCM obj)
If OBJ is a multiple-values object, returns the number of values
it contains. Otherwise returns 1.
Incidentally there is also this new one:
-- C Function: SCM scm_c_values (SCM *base, size_t n)
`scm_c_values' is an alternative to `scm_values'. It creates a
new values object, and copies into it the N values starting from
BASE.
Currently this creates a list and passes it to `scm_values', but we
expect that in the future we will be able to use more a efficient
representation.
Suggestions for different names are welcome.
Regards,
Andy
--
http://wingolog.org/
prev parent reply other threads:[~2012-07-04 15:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-22 15:17 bug#11764: Missing C API doc for accessing unknown number of values David Kastrup
2012-07-04 15:52 ` Andy Wingo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fw97a5h6.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=11764-done@debbugs.gnu.org \
--cc=dak@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).