> -----Original Message-----
> From: Mooney Christophe-CMOONEY1 [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, July 12, 2001 3:33 PM
> To:   'Rogirio Brito'; [EMAIL PROTECTED]
> Subject:      RE: multiple entry/exit points
> 
> Personally, i am very liberal with my lasts/breaks/returns/gotos.
> 
> There is definitely something to be said for strictness.  From a
> theoretical
> point of view, the code flows better.  For example, it is easier to
> diagram
> and easier to debug.  If i write code for the company i work for, i follow
> their rules, which usually means only one return statement in a
> sub/function
> and no lasts/breaks in my loops.  The word 'goto' is considered profane.
> 
        Then how do you break out of multinested loop? You set a flag and
check
        for that flag in the outer nested loops ? last <label> and break
<label>
        are there for that purpose. In C that is the only way of breaking
out
        of multinested loop without using a goto.

        -Robin

-- 
To unsubscribe, e-mail: -unsubscribe@
For additional commands, e-mail: -help@

Reply via email to