Pascal Bourguignon <email@example.com> wrote:
| Because the loop variables don't have to be available in the finally clause!
| If they're available, their value is unspecified.
Please cite some supporting evidence from the CLHS for this bizarre claim.
Note that CLHS "22.214.171.124 Iteration Control" says simply:
All variables are initialized in the loop prologue. A variable
binding has lexical scope unless it is proclaimed special; thus,
by default, the variable can be accessed only by forms that lie
textually within the loop. Stepping assignments are made in the
loop body before any other forms are evaluated in the body.
The FINALLY clause is definitely "textually within the loop", so it must
have access to all of the iteration control variables defined therein.
Rob Warnock <firstname.lastname@example.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607