* doco list and friends
@ 2003-07-09 22:19 Kevin Ryde
2003-07-17 23:58 ` Kevin Ryde
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2003-07-09 22:19 UTC (permalink / raw)
* scheme-compound.texi (List Constructors): In "list", reword for
clarity. Add scm_list_1, scm_list_2, scm_list_3, scm_list_4,
scm_list_5, scm_list_n. Remove scm_list, since it's a no-op.
I think it's clearer to write something like "elem1 ... elemN" than
". objs". The latter will be fine for experienced programmers but I
think newcomers would find a "..." style better.
I take it scm_list_n is the replacement for gh_list and hence ought to
be described. Should the rest be documented too?
Plain scm_list seems a bit useless, since it does nothing but return
the list you must create yourself to call it. I think it could be
quietly dropped.
- Scheme Procedure: list elem1 ... elemN
- C Function: scm_list_1 (elem1)
- C Function: scm_list_2 (elem1, elem2)
- C Function: scm_list_3 (elem1, elem2, elem3)
- C Function: scm_list_4 (elem1, elem2, elem3, elem4)
- C Function: scm_list_5 (elem1, elem2, elem3, elem4, elem5)
- C Function: scm_list_n (elem1, ..., elemN, SCM_UNDEFINED)
Return a new list containing elements ELEM1 to ELEMN.
`scm_list_n' takes a variable number of arguments, terminated by
`SCM_UNDEFINED'. That final `SCM_UNDEFINED' is not included in
the list. (Note that none of ELEM1 to ELEMN can themselves be
`SCM_UNDEFINED', or `scm_list_n' will terminate at that point.)
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: doco list and friends
2003-07-09 22:19 doco list and friends Kevin Ryde
@ 2003-07-17 23:58 ` Kevin Ryde
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2003-07-17 23:58 UTC (permalink / raw)
I wrote:
>
> * scheme-compound.texi (List Constructors): In "list", reword for
> clarity. Add scm_list_1, scm_list_2, scm_list_3, scm_list_4,
> scm_list_5, scm_list_n. Remove scm_list, since it's a no-op.
In absense of any objections, I made this change.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-17 23:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-09 22:19 doco list and friends Kevin Ryde
2003-07-17 23:58 ` Kevin Ryde
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).