[alexandria-devel] Re: [PATCH] improvement wrt. signalling errors on improper sequences

Tobias C. Rittweiler tcr at freebits.de
Tue Mar 11 09:46:00 UTC 2008


"Tobias C. Rittweiler" <tcr at freebits.de> writes:

> The attached patch improves error signalling when passing improper lists
> to some of the sequence function where the docstring said that they'd
> signal an error.
>
> Additionally, introduce the macro DO-PROPER-LIST, and the function
> PROPER-LIST-LENGTH -- which are used to remove some code duplication.
>
>   -T.

DO-PROPER-LIST (lists.lisp) uses PARSE-BODY (macros.lisp) which depends
upon STARTS-WITH (sequences.lisp) --- however `sequences.lisp' depends
upon `lists.lisp'.

To break this cyclic depedence, I cut the use of STARTS-WITH in
PARSE-BODY, making PARSE-BODY completely standalone.

  -T.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: alexandria-parse-body.diff
Type: text/x-diff
Size: 9483 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/alexandria-devel/attachments/20080311/c2cb1ac0/attachment.diff>


More information about the alexandria-devel mailing list