|
However, what I'm after is to make a polymorph function call like:I'd like to see the ILE RPG compiler support syntax like:
print(123.45);
print('hello world');
number = load("numbers");
string = load("strings");
number.value = 123.45;
number.print();
string.value = 'hello world';
string.print();
The "load" procedure returns qualified data structures which may contain
procedure pointers for functions like print() where the actual
implementations of print() may be defined in various service programs (i.e.
"numbers" and "strings");
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.