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



Bob Cozzi wrote:
Because 10 times out of 10 RPG programmers who create a subprocedure and evolve
them to a service program go through the following learning experience:
[SNIP]

That doesn't mean you should always use EXPORT. It means you should use EXPORT if you don't know what you're doing...

There are very good reasons to NOT use EXPORT. In particular, knowing that a procedure is "internal" makes the code easier to maintain because you know that nobody can possibly be calling it from outside the module. You can therefore change the interface of the procedure without having to research all of the callers, and potentially change them. This makes it easier, and saves significant amounts of time.

At least having the name EXPORT makes it pretty self-explanatory what the keyword does! (Unlike "static")

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.