🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #6236

once more Re: Megamax bug?

#6236
From: Bart Massey
Date: Wed, 25 Jun 1986 19:03
22 lines
1269 bytes
In article <1250@runx.OZ> baron@runx.OZ (Jason Haines) writes:
> 
> NEVER confuse the For statement - for(pre-int,test,re-init) <statement block>
> 
> Try the following:
> 
> 	for (i = ntables;;i--) <statement>
> 	if (i == -1) < more statements>
> 

NOooooo!!!!!!  We've been through this already, and I thought we had
it resolved (see my earlier posting).  You meant

	for (i = ntables; i; i--) <statement>
	if (i == -1) <more statements>

to avoid an infinite loop.  Note that this will work, but what Greg
suggested should also work.  If it doesn't, it is definitely a code
generation bug, as he surmised...

					Bart Massey
					..tektronix!reed!bart
Technical Details
Message-ID: <3737@reed.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!topaz!ll-xn!nike!ucbcad!ucbvax!hplabs!tektronix!reed!bart
References: <1023@k.cs.cmu.edu> <1250@runx.OZ>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!topaz!ll-xn!nike!ucbcad!ucbvax!hplabs!tektronix!reed!bart
From: bart@reed.UUCP (Bart Massey)
Newsgroups: net.micro.mac
Subject: once more Re: Megamax bug?
Message-ID: <3737@reed.UUCP>
Date: Wed, 25-Jun-86 15:03:39 EDT
Article-I.D.: reed.3737
Posted: Wed Jun 25 15:03:39 1986
Date-Received: Sat, 28-Jun-86 08:39:52 EDT
References: <1023@k.cs.cmu.edu> <1250@runx.OZ>
Reply-To: bart@reed.UUCP (Bart Massey)
Organization: Reed College, Portland, Oregon
Lines: 22