🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.oberon
Article #1332

Re: Oberon's FOR

#1332
From: Robert Lichtenberger
Date: Mon, 15 Apr 1996 06:41
18 lines
1120 bytes
Eric W. Nikitin (enikitin@junior.wariat.org) wrote:
: Questions about the FOR statement in Oberon(-2):
: 
: Is the value of the counter variable undefined upon exiting the loop -
: as it is in Pascal and Modula-2?
: 
: Also, I've found that in both Oberon/F and Oberon V4 for Windows, I could 
: change the counter variable within the FOR loop. I thought this was illegal
: in Modula-2 - and that Oberon(-2)'s FOR loop was the same as Modula-2's.
: 
: Is it legal (as per the language definition) to change the counter within
: the loop?
Yes it is legal, but it's _very bad_ style ;-)

-- 
Robert Lichtenberger
tanis@sport2.uibk.ac.at			k3086e1@cxmeta.edvz.uni-linz.ac.at
http://sport2.uibk.ac.at/~tanis
Technical Details
Message-ID: <4ksr22$s3v@dm2.uibk.ac.at>
Path: arc1-ca.pugleaf.net!news.uibk.ac.at!not-for-mail
References: <4kks25$hru@wariat.wariat.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.uibk.ac.at!not-for-mail
From: tanis@sport2.uibk.ac.at (Robert Lichtenberger)
Newsgroups: comp.lang.oberon
Subject: Re: Oberon's FOR
Date: 15 Apr 1996 06:41:06 GMT
Organization: University of Innsbruck, Austria 
Message-ID: <4ksr22$s3v@dm2.uibk.ac.at>
References: <4kks25$hru@wariat.wariat.org>
NNTP-Posting-Host: sport2.uibk.ac.at
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]