|
+1 ... lol ...
My guess is that Paul is simply looking for the someplace he can point
to and say, "see here's where it's documented" rather than saying
"Barbara told me" when he runs across another developer using %addr()
with a *NOPASS parameter.
In other words, if you know that %addr() is used to check for *OMITted
parms, where in the manual does it say that it doesn't work for
*NOPASSed parms.
I don't know that it's spelled out in quite that easy to understand
format...
The ILE RPG Programmers guide says
-Omitting Parameters
--Passing *OMIT
---To determine if *OMIT has been passed to an ILE RPG procedure, use
the %ADDR built-in function to check the address of the parameter in
question.
--Leaving Out Parameters
----<nothing here>
-Checking for the Number of Passed Parameters
--%PARMS does not take any parameters. The value returned by %PARMS
also includes any parameters for which *OMIT has been passed.
For a developing working from just the manuals, you have to read
between the lines and infer that %parms() must be used with *NOPASS.
Charles
On Wed, Mar 9, 2011 at 2:00 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
wrote:
(do you really think you know more about this
than the lead developer of the RPG compiler?!)
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.