|
And if this were all automatic, no special keywords necessary, the compiler just determines the type needed based on the parameters passed on the call, that would be even better.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----rpg400-l-bounces@xxxxxxxxxxxx wrote: -----
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
From: Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
Date: 01/13/2010 02:14PM
Subject: Re: RPG overloading (was RPGV?)
That would definitely work better than overloading in this case!
Barbara Morris wrote:
What would solve this problem would be a new style of pass-by-reference parameter, where the compiler would create a temporary of the type required by the prototype. It would assign the passed parameter to the temporary before the call, pass the temporary to the procedure, and then assign the temporary back to the passed parameter after the call.
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.