🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.oberon
Article #1324

Oberon's FOR

#1324
From: Eric W. Nikitin
Date: Fri, 12 Apr 1996 06:09
11 lines
825 bytes
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?
Technical Details
Message-ID: <4kks25$hru@wariat.wariat.org>
Path: arc1-ca.pugleaf.net!junior.wariat.org!enikitin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!junior.wariat.org!enikitin
From: enikitin@junior.wariat.org (Eric W. Nikitin)
Newsgroups: comp.lang.oberon
Subject: Oberon's FOR
Date: 12 Apr 1996 06:09:09 GMT
Organization: Akademia Pana Kleksa, Public Access Uni* Site
Message-ID: <4kks25$hru@wariat.wariat.org>
NNTP-Posting-Host: junior.apk.net
X-Newsreader: TIN [version 1.2 PL2]