GNU bug report logs -
#11764
Missing C API doc for accessing unknown number of values
Previous Next
Reported by: David Kastrup <dak <at> gnu.org>
Date: Fri, 22 Jun 2012 15:25:01 UTC
Severity: minor
Done: Andy Wingo <wingo <at> pobox.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11764 in the body.
You can then email your comments to 11764 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#11764
; Package
guile
.
(Fri, 22 Jun 2012 15:25:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
David Kastrup <dak <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Fri, 22 Jun 2012 15:25:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
<URL:http://www.gnu.org/software/guile/manual/html_node/Multiple-Values.html#Multiple-Values>
provides scm_c_value_ref for accessing a particular value from a values
object. There is no documented way for figuring out how many values
there are. There is no documented way for getting the complete list of
values in an object (Guile itself uses scm_struct_ref (value,SCM_INUM0)).
While there is a macro VALUESP for figuring out whether an SCM is a
values object, it is not documented either.
--
David Kastrup
Reply sent
to
Andy Wingo <wingo <at> pobox.com>
:
You have taken responsibility.
(Wed, 04 Jul 2012 15:58:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
David Kastrup <dak <at> gnu.org>
:
bug acknowledged by developer.
(Wed, 04 Jul 2012 15:58:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 11764-done <at> debbugs.gnu.org (full text, mbox):
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/
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 02 Aug 2012 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 273 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.