"for" loops (was Re: C++ vs. Modula
Andrew Koenig
ark at alice.UUCP
Thu Feb 9 00:00:57 AEST 1989
In article <7800004 at gistdev>, flint at 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 at europa.att.com
More information about the Comp.lang.c
mailing list