Article View: comp.lang.modula2
Article #4611Re: "for" loops (was Re: C++ vs. Modula2)
From: Barry Margolin
Date: Mon, 30 Jan 1989 20:32
Date: Mon, 30 Jan 1989 20:32
18 lines
1330 bytes
1330 bytes
In article <1381@X.UUCP> john@frog.UUCP (John Woods) writes:
]In article <19579@agate.BERKELEY.EDU>, bowles@eris.berkeley.edu (Jeff A. Bowles) writes:
]> If I had a nickel for every time, in Fortran,
]> that I needed a loop that ran from 0.0 to 1.0 by 0.1 (or the like)
]...you'd be broke. You NEVER need a loop that runs from 0.0 to 1.0 by 0.1.
]1/10 is a repeating fraction in binary
Just because Fortran can't do it doesn't mean that he doesn't NEED it;
it just means he can't GET it. Since the real world mostly works in
decimal, I imagine that the need is frequent. Luckily, there are
well-known and easy ways around this problem.
Barry Margolin
Thinking Machines Corp.
barmar@think.com
{uunet,harvard}!think!barmar
Technical Details
Message-ID:
<35916@think.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!mirror!ima!think!barmarReferences:
<INFO-M2%89011219330825@UCF1VM> <739@jupiter.iis.UUCP> <19579@agate.BERKELEY.EDU> <1381@X.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!mirror!ima!think!barmar From: barmar@think.COM (Barry Margolin) Newsgroups: comp.lang.modula2,comp.lang.c Subject: Re: "for" loops (was Re: C++ vs. Modula2) Message-ID: <35916@think.UUCP> Date: 30 Jan 89 20:32:51 GMT References: <INFO-M2%89011219330825@UCF1VM> <739@jupiter.iis.UUCP> <19579@agate.BERKELEY.EDU> <1381@X.UUCP> Sender: news@think.UUCP Reply-To: barmar@kulla.think.com.UUCP (Barry Margolin) Organization: Thinking Machines Corporation, Cambridge, MA Lines: 18