On Tue, 22 Apr 2008 22:41:49 +0000, Ted MacNEIL 
<[EMAIL PROTECTED]> wrote:

>>I think abuse of ITERATE and LEAVE to be a much milder crime.
>
>I don't know what you mean by abuse, but when I studied 
modular/structured programming at the University of Waterloo, these 
were considered valid constructs.
>...

I absolutely agree.  Even when absolutes aren't appropriate.

I may have misunderstood Paul, but I assume he was describing 
such convoluted logic that use of SIGNAL might have actually
made more understandable code.  I was trying to say the even then
I would consider use of ITERATE and LEAVE preferable to SIGNAL.

In fact, I'm not sure that I would ever use SIGNAL to break out of a
complex nested loop structure even if it DID greatly simplify the
logic.   In fact, I don't even like named LEAVE; I leave each level
seperately.  (And that is probably even more pig-headed than
religiously avoiding SIGNAL.)

Pat O'Keefe

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to