Author:halw

Date:2010-03-05T03:15:15.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@506 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2010-03-05 03:15:15 +00:00
parent 8804fa7cd9
commit 221811c9c9
3 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1 @@
<center><p style="text-align:center; width: 500px; border: 1px solid #FFB55F; padding: 10px; background-color: #FFEEBF; color: black;">[[Image:LogoUpdateNeeded|24px]] '''Update Needed: '''Be careful. This page has been identified as needing update. You can help update it by becoming a [[Community|contributor]].</p></center>

View File

@@ -0,0 +1,3 @@
title=UpdateNeeded
author=halw
path=content/updateneeded

View File

@@ -45,11 +45,11 @@ The effect of such a multi-branch instruction, if the value of <code>exp</code>
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. 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. 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, ideal 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. We will explore the entire mechanism, but let's approach things a little at a time.
====Two examples==== ====Two forms -- two examples====
First let's take a look at two examples. These examples accomplish the same goal: they both use a loop to visit and print the content of each node of a linked list of character strings. So, the list in question might be declared like this: First let's take a look at two examples. These examples accomplish the same goal: they both use a loop to visit and print the content of each node of a linked list of character strings. So, the list in question might be declared like this: