×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On 3/10/2011 12:41 PM, Charles Wilt wrote:
Barbara,
My C's a little rusty...but I'm thinking of the way C supports
unpassed parms via a default value..of course that appears to require
callers to be recomplied when a new optional parm is added...which we
don't have in RPG.
I'm not familiar with C supporting unpassed parms via a default value.
C doesn't support optional parameters the way RPG does. As far as I
know there's nothing like %PARMS. The C function always has some way of
indicating that the later parameters are not passed. Say for printf,
the string template has %s %d etc saying to expect a pointer, an integer
etc. The open() function has a "flag" or maybe it's the "mode"
parameter that has a bit saying that there's a CCSID parameter coming up
later.
But RPG has always supported optional parameters the way it does now,
although it was originally *PARMS in the PSDS, not %PARMS.
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.