meaning of continue (WAS: Some interesting novice questions [...])

Alex Martelli staff at cadlab.sublink.ORG
Fri Nov 2 09:11:40 AEST 1990


rob at raksha.eng.ohio-state.edu (Rob Carriere) writes:
	...
>human code-executer to do the right thing.  Finally, one could define continue
>to mean that `execution continues with the test expression of the innermost
>enclosing loop'.  Would you claim this wrong because K&R2 does not refer to
>`test expression'?  In other words, your concept of correctness is flawed.

I *WOULD* indeed claim that saying that continue means "proceed with
the test expression of the innermost enclosing loop" is wrong - if
said loop is for(<a>;<b>;<c>), executions on a continue proceeds with
the *increment* expression <c>, NOT with the test expression <b>!
-- 
Alex Martelli - CAD.LAB s.p.a., v. Stalingrado 45, Bologna, Italia
Email: (work:) staff at cadlab.sublink.org, (home:) alex at am.sublink.org
Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; 
Fax: ++39 (51) 366964 (work only), Fidonet: 332/401.3 (home only).



More information about the Comp.lang.c mailing list