Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!mit-eddie!rutgers!att!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: "for" loops (was Re: C++ vs. Modula Message-ID: <8887@alice.UUCP> Date: 8 Feb 89 14:00:57 GMT References: <1611@csuna.UUCP> <7800004@gistdev> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 23 In article <7800004@gistdev>, flint@gistdev.UUCP writes: > So if your user had written (hascall's previous example below) > > do i=0.0, 4.0, 2.0/3.0 > you just multiply everything by 3 to convert it into this: > do i=0,12,2 > float=i/3.0 Sure, this could be done. It has a nasty side effect, though: do i = 0.0, 4.0, 2.0/3.0 will mean something different from x = 2.0 y = 3.0 do i = 0.0, 4.0, x/y I would rather have a system whose behavior doesn't change when I replace a value by another identical value. -- --Andrew Koenig ark@europa.att.com