|
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
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.