|
The simple MOVE did everything we needed - anyone want to vote for IBM
bringing back the opcodes they didn't put into free form? This is an
example where it's just not that simple to use an EVAL.
On 8/17/2013 3:15 PM, Vernon Hamberg wrote:
The simple MOVE did everything we needed - anyone want to vote for IBM
bringing back the opcodes they didn't put into free form? This is an
example where it's just not that simple to use an EVAL.
Why not use MOVE then? I know, I know - aesthetics. I have a
smarty-pants answer for that too.
-snip-
Old code, and it's clearly stated that I'm not to do major surgery! No
time, mostly.
We all of us have been there. Write a quickie sub-procedure that does
the conversion via MOVE. All the working bits are now local storage
rather than global, which will make the program more resilient to
change. In the mainline, where the MOVE used to be, insert the
sub-procedure call and you have an aesthetically clean bit of
refactoring that still uses the old but reliable MOVE in a new and even
more reliable way.
--buck
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (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.