Since RPG does not allow for procedure overloading I'm wondering what
other solutions people have come up with.

For example, I have....

*
* iText Document Methods
*
D new_iText_Document...
D PR like(iText_Document)
D ExtProc(*JAVA
D :'com.lowagie.text.Document'
D :*CONSTRUCTOR)
D new_iText_Document_Pagesize...
D PR like(iText_Document)
D ExtProc(*JAVA
D :'com.lowagie.text.Document'
D :*CONSTRUCTOR)
D pagesize like(iText_Rectangle)
where the constructor for an new_iText_Document is overloaded. My
solution was to add the Pagesize parameter to the name.

Does anyone else have any other naming suggestions?

Thanks,

Robert Rogerson

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.