Next Previous Up Top Contents Index

5.3 The Generic-Arithmetic library

5.3.5 Iteration constructs

While a programmer could make use of generic arithmetic in a for loop by using explicit-step clauses, this approach leads to a loss of clarity. The definition of the for macro is complex, so a version that uses generic arithmetic in numeric clauses is provided, rather than requiring programmers who want that feature to reconstruct it.

for

Statement macro

The start, bound, and increment expressions in a numeric clause must evaluate to instances of <machine-number> for this macro. Otherwise, this macro is similar to for#Dylan.

Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index