do...while vs. repeat...until (was: Errors aren't that simple)

Peter da Silva peter at ficc.uu.net
Mon Mar 19 10:39:26 AEST 1990


The only sense in which repeat...until is more natural than do...while is
if you're an assembly programmer or compiler writer. In that case they
both use tests that code to:

	expr	ession,that
	eval	uates,to
	a	true
	or	false,value

	bzero	label

which means you can save a single argument to your "generate-conditional-
branch" subroutine. Wow.
-- 
 _--_|\  `-_-' Peter da Silva. +1 713 274 5180. <peter at ficc.uu.net>.
/      \  'U`
\_.--._/
      v



More information about the Comp.lang.c mailing list