|
John, I'm not sure that would be overloading. Since Function(String, int) and Function(String, int) are the same thing. I see your point, but I don't believe that would be considered overloading as Function(int) and Function(String) would be. Brad > -----Original Message----- > From: jpcarr@TREDEGAR.COM [mailto:jpcarr@TREDEGAR.COM] > Sent: Tuesday, May 08, 2001 8:01 PM > To: RPG400-L@midrange.com > Subject: RE: Overloading in RPG. > > > > >Some people would argue that overloading is syntactic sugar. > I'm neutral. > >Generally overloading is used to do something that is > different in detail, > >not totally different. Joel Fritz > > > > I would tend to agree. Just because C++ or Java has it > doesn't necessarily > mean it's the best idea I don't think. > > What if you had a procedure with two functions, however in > both cases you > passed the same three parameters? Just different functions. How would > overloading do that? Even in RPGIII we would have passed four > parms, the > three that did the work and the forth(usually first) is a > function number. > This number(ie could be 1,2,3, etc) would tell the "proc" > what function you > wanted to do with the three identical parameters. > > How would Java's overloading handle wanting to do multiple > functions with > the Same Parms passed ? The kind of thing we used to do in > utility programs > even in CL 15 years ago? > > John Carr > > +--- > | This is the RPG/400 Mailing List! > | To submit a new message, send your mail to RPG400-L@midrange.com. > | To subscribe to this list send email to RPG400-L-SUB@midrange.com. > | To unsubscribe from this list send email to > RPG400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: > david@midrange.com > +--- > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.