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



<snip>
What the compiler "sees" is effectively a single source - Yes. And I would be OK with a rule that says you MUST use /COPY (/INCLUDE) for prototypes. That does at least help to guarantee that there is only one place where they are coded.
</snip>

How would the rule work? Just because a /COPY exists in the using routine that contains the prototypes doesn't mean it's the same /COPY used to compile the used routine.

<snip>
What I don't understand is how you propose that the _using_ routine be informed of the interface requirements. If not via a prototype (and accepting that a system wide facility has too high a cost and too many issues) then how do you propose it could work?
</snip>

When I first started using procedures way back when, it was all within the same program, so it made sense that the compiler could simply check the PI specs. Then when I started using service programs, my first thought was that the compiled service program could have the PI specs available for the using routine to check. But that has the same problems as a /COPY -- if you're compiling in a development environment, the service program there may be different from the production environment's version, and boom! you're trying to figure out a mis-matched parameter issue.

-- *Peter Dow*

/Dow Software Services, Inc. 909 793-9050 petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx> pdow@xxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxx> /


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.