× 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 2018-02-19 9:23 AM, dlclark@xxxxxxxxxxxxxxxx wrote:

In my experience, although prototypes are no longer required for
internal procedures, the compiler still requires a prototype for external
stored procedures or it gives a compile-time error that the procedure is
undefined.

That's true of a module that is calling a procedure in another module.

But a prototype isn't required within the module that is exporting the procedure.

Thomas, the reason that the compiler doesn't require a prototype is that it the procedure may not ever be called from another RPG module.

It wouldn't be possible for the compiler to change its rules and start requiring a prototype for exported procedures. But you could open an RFE to request an H spec option to require prototypes for programs and exported procedures.


As an Amazon Associate we earn from qualifying purchases.

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-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.