2.8 Miscellaneous features

2.8.1 Data types

Many loop constructs take a type-spec argument that allows you to specify certain data types for loop variables. While it is not necessary to specify a data type for any variable, by doing so you ensure that the variable has a correctly typed initial value. The type declaration is made available to the Compiler for more efficientloop expansion.

In Liquid Common Lisp, fixnum and float declarations are especially useful; the Compiler notices them and emits more efficient code. See the discussion of the loop methodelements in Section 2.9 on page 43 for more information about the Compiler's use of type specifiers.

Syntax ambiguities prevent the Loop Facility from supporting all Common Lisp type specifiers. The following type specifiers are supported by the Loop Facility:

The Loop Facility - 9 SEP 1996

Generated with Harlequin WebMaker