Previous: , Up: Loop   [Contents][Index]


15.25.12 Miscellaneous Features

Named Construct

The Loop Facility provides the ‘named’ construct to name a loop so that the Common Lisp special form return-from can be used.

Initially and Finally Constructs

The loop keywords ‘initially’ and ‘finally’ designate loop constructs that cause expressions to be evaluated before and after the loop body, respectively.

Initially Clauses

The code for any ‘initially’ clauses is collected into one progn in the order in which the clauses appeared in the loop. The collected code is executed once in the loop prologue after any implicit variable initializations.

Finally Clauses

The code for any ‘finally’ clauses is collected into one progn in the order in which the clauses appeared in the loop. The collected code is executed once in the loop epilogue before any implicit values are returned from the accumulation clauses. Explicit returns in the loop body, however, will exit the loop without executing the epilogue code.