[net.micro.mac] once more Re: Megamax bug?

bart@reed.UUCP (Bart Massey) (06/25/86)

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