🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4924

Re: BY expression

#4924
From: Pat Terry
Date: Mon, 05 Feb 1990 00:07
27 lines
1124 bytes
 > >>Does anyone know why the BY expression in a FOR loop must be
 > >>a constant expression? Is there some semantic reason?

  What meaning would you like for

    FOR I := 1 TO 20 BY I DO WriteCard(I,3) END.

Does your answer tie in with the meanings you would like/expect for

     I := 1;
     FOR I := I TO 20*I DO WriteCard(I, 3) END

(I would expect the output 1 2 3 4 5 6 7 8  ... 19 20 <end> in this case)

Just wondering.

Pat

 




--  
uucp: uunet!m2xenix!puddle!5!494!4.101!Pat.Terry
Internet: Pat.Terry@p101.f4.n494.z5.fidonet.org
Technical Details
Message-ID: <1003.25CDA26F@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p101.f4.n494.z5.fidonet.org!Pat.Terry

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p101.f4.n494.z5.fidonet.org!Pat.Terry
From: Pat.Terry@p101.f4.n494.z5.fidonet.org (Pat Terry)
Newsgroups: comp.lang.modula2
Subject: Re: BY expression
Message-ID: <1003.25CDA26F@puddle.fidonet.org>
Date: 5 Feb 90 00:07:18 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 5:494/4.101 - Settler City, Grahamstown RSA
Lines: 27