Arnesi patch: Support missing result forms in cond-bind and acond
2006-05-31 23:58:48 GMT
Below is a patch for COND-BIND and ACOND to support missing result
forms. I've also included a small test suite for the flow-control
operators.
Let me know if you would like the patch in a different format.
Cheers,
Chris Dean
New patches:
[Support missing result forms in cond-bind and acond
Chris Dean <ctdean <at> sokitomi.com>**20060531234605
The CLHS says that COND results in:
the values of the forms in the first clause whose test-form yields
true, or the primary value of the test-form if there are no forms in
that clause
Meaning (among other things) that
(cond (1)) => 1
This is a patch to give COND-BIND and ACOND the same behavior. Before
this patch they would return NIL if there was a missing result form.
] {
hunk ./arnesi.asd 72
(Continue reading)
RSS Feed