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



On Sat, Jan 9, 2010 at 5:43 AM, Simon Coulter <shc@xxxxxxxxxxxxxxxxx> wrote:


I agree that RPG should have procedure overloading (he calls it
parameter overloading)--I'd spend my entire 100 dollars on that one
feature ...

... I want the RPG developers to give me the stuff I CAN'T write. I don't
want them to do stuff the average RPG developer is simply too lazy to
implement and I don't want them to waste money tarting up the syntax.

I assume by "RPG developer", Simon is referring to the IBM designers
and programmers of the RPG compiler.If the ILE pre compiler worked
properly and was fully documented, we would not need IBM to add
anything to RPG to get the language features that any of us want.

A procedure overloading pre compiler would:
a. ) Read as input, RPG source code which contains multiple
definitions of a procedure that differ by their parameters,
b. ) Decorate those procedure names so they are no longer identical.
c. ) Scan for all references to the overloaded procedure names and
replace with the correct decorated name ( according to the arguments )
d. ) Pass along this new view of the source code, where procedure
names are no longer ambiguous as far as the IBM ILE RPG compiler is
concerned, as the output of the "procedure overloading pre compiler".
e. ) Create a debugger view to enable the output of the "procedure
overloading pre compiler" to be one of the source code views available
in the interactive debugger.
f. ) Somehow, somewhere, store the relationship between the ambiguous
procedure names and the decorated names.
g. ) Write a new version of the DSPPGM, DSPSRVPGM and DSPMOD commands
which shows the overloaded procedure names the way you coded them. (
the QSYS versions of these commands will show the decorated names. )

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.