Ken Tilton <kentilton@gmail.com> wrote:
+---------------
| Kalle Olavi Niemitalo wrote:
| > Ken Tilton <kentilton@gmail.com> writes:
| >> when (getf ....)
| >> collect (cons (first slot-def) it) ;; "it" = obscure loop trick
| >
| > IT works only immediately after another loop keyword; not when
| > shielded from sight by parentheses.
|
| Worked for me, but what you say makes sense. Might be an implementation
| thing. Thx.
+---------------
Maybe another one of those CLtL2 thingies...? The CLHS is
pretty explicit about IT being usable in only two places:
6.1.6 Conditional Execution Clauses
...
The loop keyword IT can be used to refer to the result of the
test expression in a clause. Use the loop keyword IT in place
of the form in a RETURN clause or an accumulation clause that
is inside a conditional execution clause.
An even further restriction:
If multiple clauses are connected with AND, the IT construct
must be in the first clause in the block.
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607