|
In that case then IF and Do and For and Select are nothing but GOTO's with
an implicit tag. No, I think iter and leave are different than goto.
Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From:
smorrison@xxxxxxxxxxxxxxxxxxx
To:
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Date:
01/09/2009 12:03 PM
Subject:
Re: Good places to use "The Cycle" in today's RPG was->Re: FW:
Niftiest thing(s) you have done in RPG ILE or /FREE
Sent by:
rpg400-l-bounces@xxxxxxxxxxxx
I am amazed at the number of people who say that ITER and LEAVE are good
op-codes, but GOTO is a nasty op-code! What do you think ITER and LEAVE
are, except a fancy GOTO without an explicit TAG? I felt the same way
about CABxx (Case and Branch) when that was the popular new op-code!
Steve
Steven Morrison
Fidelity Express
James Lampert <jamesl@xxxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
01/09/2009 10:40 AM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
cc
Subject
Re: Good places to use "The Cycle" in today's RPG was->Re: FW:
Niftiest thing(s) you have done in RPG ILE or /FREE
GUY_HENZA@xxxxxxxxxxxxxx wrote:
I was taught structured programming in 1980 and I have never writtena new
program with a GOTO, ITER or LEAVE. I consider them to be poorprogram
design.
Hmm. Sounds like you were taught by a fanatical disciple of Wirth.
There is nothing inherently bad about ITER or LEAVE, provided they are
used in situations (e.g., brute-force table look-up) in which premature
exit of a loop is the norm, and completion of the loop is the exception.
--
James H. H. Lampert
Touchtone Corporation
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
Confidentiality Statement: This electronic mail transmission is
confidential, may be privileged and should be read or retained only by the
intended recipient. If you have received this transmission in error,
please notify the sender immediately and delete it from your system.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.