|
-----Original Message----- From: frank.meaney@nellcorpb.com <frank.meaney@nellcorpb.com> > > 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. Most textbooks consider ITER and LEAVE (or whatever operations implement the function in the language) to be structured operations. There are occasions where using them in a loop makes sense, i.e. makes the particular behaviour required easier to implement and easier to maintain. However, IMHO these instances are few and far between in new code - there are very few cases where using them is the best solution when all reasonable implementations are considered. Of course, when maintaining existing code, it's often easier to add one of these in than it is to restructure a loop. I don't have a hard and fast rule against using them here, however they are on the "must be justified for each use" list. Dave Shaw, General Nutrition, Greenville, SC (just down the road from BMW - Bubba Makes Wheels :) The opinions expressed may not be my employer's unless I'm sufficiently persuasive... +--- | 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.