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



Basically the rules haven't changed. For a procedure/program to be called, a prototype (or the PI for internals) must be present.

That includes the overloading proto. Normally I would have all (say) three protos in a /Copy source - I'm just going to add the overload one to that set. No increase in work except for the original definition of the overload proto.

This is all a compile time function and as I said earlier fundamentally a compiler directive in a different form.


On Oct 8, 2019, at 1:11 PM, Peter Dow <petercdow@xxxxxxxxx> wrote:

Jon,

Assuming the FORMAT procedure and its candidate procedures are all in a service program, how do I use it in another RPG program? I would guess that I have to put the prototype in the RPG program, yes? Do I have to put all the candidate prototypes in there too? My thought was the RPG program using it would simply have

Dcl-Pr Format Override( ProcA, PgmB, JavaC );


but now that I put it that way, the compiler would have to go to the service program to check my usage against each of those candidate prototypes to see if it's allowed.

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

/
On 10/8/2019 12:14 PM, Jon Paris wrote:
FORMAT is never exported because it is only really a compiler directive.

For example thing of it this way.

Dcl-Pr Format Override( ProcA, PgmB, JavaC );

This is handled by the compiler much like a conditional compilation directive such as ...

/IF ParmMatches ProcA
CallP ProcA(parm);
/ELSEIF ParmMatches ProcB
CallP PgmB(parm);
/ELSE
....

It is that simple.


On Oct 8, 2019, at 11:28 AM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:

Is FORMAT exported? There will be times when I want it exported and other times I don't. My best guess is that it inherits from the actual procedures.

-----Original Message-----
From: Jon Paris [mailto:jon.paris@xxxxxxxxxxxxxx]
Sent: Tuesday, October 08, 2019 1:04 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Latest RPG Updates

Actually it doesn't matter if the procedure is exported or not. In fact the overloaded routines can include programs, Java calls, and subprocs.


--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
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: https://amazon.midrange.com



--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
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: https://amazon.midrange.com


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.