×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




that's pretty much the same type of stuff i did with iText. trust me it
gets a lot uglier...


Thanks,
Tommy Holden



From:
Robert Rogerson <rogersonra@xxxxxxxxx>
To:
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Date:
07/27/2009 03:19 PM
Subject:
RPG naming of overloaded Java methods
Sent by:
rpg400-l-bounces@xxxxxxxxxxxx



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

Replies:

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.