|
Looking at this I think what are looking at is Polymorphism. The ability of
Java or other languages to based on the type of parameters to know which
procedure to call . RPG doesn't have it.
That would seem to me if that is true you really only have a couple of
options. Write a function for each type. Not really that big of a deal or
do like you are doing of having one procedure that passes a constant type
and the address of a variable and then you function figures out which value
got called and call the proper function to call.
i think just have a single function for each type would be simpler.
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.