[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11764: Missing C API doc for accessing unknown number of values
From: |
Andy Wingo |
Subject: |
bug#11764: Missing C API doc for accessing unknown number of values |
Date: |
Wed, 04 Jul 2012 17:52:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
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 in Thread] |
Current Thread |
[Next in Thread] |
- bug#11764: Missing C API doc for accessing unknown number of values,
Andy Wingo <=