Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!uhccux!virtue!ccc_ldo From: ccc_ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) Newsgroups: comp.lang.modula2 Subject: Re: Why are the loops so awkward? Message-ID: <728.26767558@waikato.ac.nz> Date: 13 Jun 90 05:18:16 GMT References: <5377.26731960@puddle.fidonet.org> Organization: University of Waikato, Hamilton, New Zealand Lines: 14 There are two interpretations of this situation: 1) Unless they're a natural fit to the problem you're trying to solve, stay away from zero-based arrays. Only C programmers could love them. 2) FOR-loops also have their problems. So who needs FOR, WHILE and REPEAT loops, anyway? Use a LOOP statement with one or more EXITs instead. Note that neither of these points is necessarily specific to Modula-2. Lawrence D'Oliveiro Computer Services Dept fone: +64-71-562-889 University of Waikato fax: +64-71-384-066 Hamilton, New Zealand electric mail: ldo@waikato.ac.nz DOS user interfaces have come a long way: Ctrl-K-B has given way to Alt-F4.