× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: ILE RPG:Is the use of ITER & LEAVE Structured Programming?
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Thu, 23 Apr 1998 08:16:39 -0500

ITER and LEAVE are not structured programming.  I myself hate GOTOs and
understand yourpoint.  But since RPG is not a free format language, I
used ITERs instead of nested IFs just to make the code more readable.
If RPG was free format and we could indent IFs and DOs, then I would
probably quite using them.

I will never use GOTOs.

Oh, and that opcode you were talking about being able to hop entirely
out of a subrouting, I belive CAB does that already.

Bradley V. Stone        
bvstone@taylorcorp.com
http://prairie.lakes.com/~bvstone/
"Robble Robble" - The Hamburgler

> -----Original Message-----
> From: Scott Johnson [SMTP:sjohnson@highsmith.com]
> Sent: Thursday, April 23, 1998 7:20 AM
> To:   'MIDRANGE-L@midrange.com'
> Subject:      RE: ILE RPG:Is the use of ITER & LEAVE Structured
> Programming?
> 
> Frank,
> 
> I am on your side.  ITER and LEAVE are not structured programming.
> They are just GOTOs in disguise.  Rumor has it that IBM is working on
> another one that will allow a person to leave an subroutine in the
> middle
> of it. I ask why?  Couldn't their time be better spent elsewhere?
> Wouldn't
> this be the same as a GOTO and a TAG??
> 
> I view Structured Programming as one entry point/one exit point.
> DO loops are entered at the top and you exit at the bottom.  Same
> with Subroutines.  I just don't like that leaving something in the
> middle.
> It can make debugging somebody else's code more difficult.
> 
> --  My Two Cents Worth
> ------------------------------------------------------
> Scott P. Johnson
> Programmer/Analyst
> IBM Certified Specialist - AS/400 RPG Programmer
> Highsmith Inc.
> W5527 Hwy 106, PO BOX 800
> Fort Atkinson, WI 53538-0800
> TEL:  920-563-9571                FAX:  920-563-7395
> sjohnson@highsmith.com
> www.highsmith.com
> ------------------------------------------------------
> ----------
> From:
> frank.meaney@nellcorpb.com[SMTP:frank.meaney@nellcorpb.com]
> Sent:         Thursday, April 23, 1998 3:06 PM
> To:   MIDRANGE-L@midrange.com
> Subject:      ILE RPG:Is the use of ITER & LEAVE Structured
> Programming?
>      
>      Hi Folks,
>      
>      I was just looking at a printout from the News400.com website
> about 
>      RPG ILE (tips and techniques). I belive the text was authored by
> 
>      Bryan Meyers. However he mentioned the use of ITER and LEAVE in
> the 
>      context of structured programming. 
>      
>      I suppose I am a purist and I ensure that these opcodes are not
> part 
>      of any new development that we produce. IMHO these opcodes are
> GOTO's 
>      without TAGs and are not structured programming. I'd love to hear
> 
>      other opinions on this. And what is a strict defination of
> Structured 
>      programming.
>      
>      Regards,
>      
>      Frank Meaney.
>      (Unisoft Systems Ltd)     
> 
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To unsubscribe from this list send email to
> MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.