Ken Sims wrote:
...
Barbara can attest that this really means what it say, and that there
is not some sneaky passing-by-referencing actually going on under the
covers. If you don't believe me or the manual, I hope that you will
at least believe her.
I thought I posted something about this yesterday, but I don't see it.
Actually, the system does sometimes do some sneaky passing-by-reference
under the covers when it does pass-by-value, but it isn't the same as
true pass-by-reference.
Normally, it should be transparent, but due to the way the various
compilers handle some data types, some parameters passed by value would
be treated by the system as truly by-value, and some would be treated in
the sort-of-by-reference way. If you are mixing languages, be sure to
specify EXTPROC(*CWIDEN) or *CNOWIDEN or *CL, to ensure that the RPG
compiler will handle those data types the same way as the other
language. (You can code that EXTPROC whether your RPG programs are
calling a procedure written in the language procedure, or whether your
RPG procedures are being called by programs in the other language.)
This mailing list archive is Copyright 1997-2026 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.