|
On Mar 5, 2018, at 9:45 PM, John Yeung <gallium.arsenide@xxxxxxxxx> wrote:
On Mon, Mar 5, 2018 at 11:36 AM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
What I don't understand is how you propose that the _using_ routine be informed of the interface requirements.
It would simply read the interface directly, wherever it lives. The
most likely place for that would be wherever the procedure is defined.
But I could also see having something separate. If separate, then it
could be something akin to a /COPY member, but not semantically
equivalent to copying, and not usable for arbitrary purposes. Maybe
call it /IMPORT, and only allow prototype information. (If you want to
talk practicality of implementation, this is only a small adjustment
to /COPY.)
It's easy to brainstorm alternatives, or more fleshed-out mechanisms.
For example, in the defining source, there could be an /EXPORT
directive to mark an exported interface, and the compiler could use
that to generate whatever it is that would be needed for successful
/IMPORT by the caller. Could be extra information stored in the
*MODULE object, or could be a completely new and separate *PROTOTYPE
object, whatever.
I can't imagine these ideas are incredibly novel. (I *think* they are
more-or-less along the lines of at least some of what Dieter was
talking about.)
John Y.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
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.