Article View: comp.lang.modula2
Article #816Re: Why are the loops so awkward?
From: Patrick Seemann
Date: Thu, 14 Jun 1990 09:19
Date: Thu, 14 Jun 1990 09:19
10 lines
608 bytes
608 bytes
You may replace the FOR by a WHILE loop:
n := Length (s);
i := 0;
WHILE (i < n) DO
(* process s[i] *)
INC (i);
END (* WHILE *);
greetings, pat
Technical Details
Message-ID:
<26406@ethz-inf.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rutgers!mephisto!bloom-beacon!eru!luth!sunic!mcsun!cernvax!chx400!ethz!ethz-inf!pseemannReferences:
<5377.26731960@puddle.fidonet.org>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rutgers!mephisto!bloom-beacon!eru!luth!sunic!mcsun!cernvax!chx400!ethz!ethz-inf!pseemann From: pseemann@inf.ethz.ch (Patrick Seemann) Newsgroups: comp.lang.modula2 Subject: Re: Why are the loops so awkward? Message-ID: <26406@ethz-inf.UUCP> Date: 14 Jun 90 09:19:43 GMT References: <5377.26731960@puddle.fidonet.org> Organization: Informatik ETH Zurich Lines: 10