Early introduction of two loop forms. As per recent feedback.

Author:halw
Date:2010-03-05T03:07:57.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@505 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2010-03-05 03:07:57 +00:00
parent 4cce8ded27
commit 8804fa7cd9

View File

@@ -43,7 +43,11 @@ The effect of such a multi-branch instruction, if the value of <code>exp</code>
===Loop===
The loop construct provides a flexible framework for iterative computation. Its flexibility lies in how the complete form can be tailored and simplified for certain purposes by including or omitting optional parts. We will explore the entire mechanism, but let's approach things a little at a time.
The loop construct provides a flexible framework for iterative computation. Its flexibility lies in how the complete form can be tailored and simplified for certain purposes by including or omitting optional parts.
You'll learn that the loop construct is always used in one of two forms: a '''base''' form which allows precise control over details of all loop aspects, and an '''iteration''' form which abstracts many of the details and provides a concise notation for traversing data structures and other objects which support iteration.
We will explore the entire mechanism, but let's approach things a little at a time.
====Two examples====