|
> -----Original Message----- > From: rpg400-l-bounces+cwilt=meaa.mea.com@xxxxxxxxxxxx > [mailto:rpg400-l-bounces+cwilt=meaa.mea.com@xxxxxxxxxxxx] On > Behalf Of Holden Tommy > Sent: Friday, May 05, 2006 5:02 PM > To: RPG programming on the AS400 / iSeries > Subject: RE: CONST Parameter passing, varying and *varsize > > <snip> > > >>Lastly, it is obvious that no temporary variables are needed when > > Proc1a > > >>calls Proc2. > > Why is it obvious? The Proc2 doesn't know or care where the > > data comes > > from, it will still act the same.. > > Since the parms match between Proc1a and Proc2, no manipulation would > occur. Temp variables might be used for the call to Proc1a, but the > same address would be passed straight on into Proc2. > > Make sense? > </snip> > > Sounds logical enough...but somehow I doubt this is truly the case, > perhaps Barbara or another IBMer can tell us for sure... > > It would seem that even though the parameters match. Proc2 > can't assume > that the string size (or variable size) hasn't changed since Proc1a > received the value. Sure it can, that's what CONST tells it. Charles Wilt
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.