On 12/16/2009 9:36 AM, Dennis Lovelady wrote:
But define "Fixed."

Prototype with no parameters specified as OPTION(*NOPASS).

You would not find the following acceptable?

// If more parameters have been added without checking here
// then abort
If %Parms > 5
sendEscape('USR4107': 'Too many parameters to myProc.'
+ ' Complete the maintenance.') ;
EndIF ;

If the prototype specifies 5 parms, and 6 parms are specified on the invocation ... the compiler will complain.

If I saw a procedure with no optional parameters, and saw that line ... I would think that the prototype was wrong or that the developer forgot to put in optional parameters.

david


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.