Re: Things to hack on?

Andreas Rottmann <[email protected]> Mon, 02 Feb 2004 19:23:55 +0100
Newsgroups gmane.lisp.scheme.pika.devel
Message-ID <[email protected]>
Tom Lord <lord-1tv/[email protected]> writes:

>     > From: Andreas Rottmann <[email protected]>
>
>     > I just wonder what's up next for implementation in Pika; I could
>     > imagine hacking on:
>
> scm_is_list () and scm_list_length () might be a good place to start.
>
[snip description of unfinished-code]

> One idea is to move those to src/libscm, review/unrot them, and write
> some tests.   The code in there that does interrupt polling can just
> be #if 0'ed out for now (and add a #undef FIXME there too -- to make
> it easier to grep for).
>
OK, I'm on it. Should the functions live in libscm/pair.c? Also, is
a unit test called pair-tests/unit-lists.c OK?

> scm_list_reverse can work similarly.
>
> It might be worth modifying scm_list_ilength to optionally return the
> last pair of a proper list and then use that to write scm_list_append.
>
OK, I'll consider that.

Andy
-- 
Andreas Rottmann         | [email protected]      | 118634484@ICQ | [email protected]
http://yi.org/rotty      | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Say NO to Software Patents! -- http://petition.eurolinux.org/