|
>Also, just to be clear, it would be the prototype in the copybook, not
the procedure. Your instinct is right however. If the code is reusable
within a single program, there is a good chance it can be reused in
other programs as well.
If the procedure is "private" and thus only used within the module,
then I leave the prototype in the module as well.
It doesn't make sense to me to put the prototype in a copy book when
the procedure can't be used by anybody else.
Most of my private procedures exist to provide modularity with defined
interfaces to the code. Not for reusability.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.