R ribber Member Licensed User Longtime User Jan 4, 2012 #1 Hi all, is it possible to use overloading of methods and constructors in my custom java libary? Thank you!
Hi all, is it possible to use overloading of methods and constructors in my custom java libary? Thank you!
Erel B4X founder Staff member Licensed User Longtime User Jan 4, 2012 #2 No. The constructor cannot accept any parameters. For methods you will need to use different names (Initialize, Initialize2, ...).
No. The constructor cannot accept any parameters. For methods you will need to use different names (Initialize, Initialize2, ...).
R ribber Member Licensed User Longtime User Jan 4, 2012 #3 Hi Erel, thank you for the answer. Is it planned for the future to add this feature?
J Jost aus Soest Active Member Licensed User Longtime User Mar 18, 2012 #5 Any news? Erel said: I don't know... Click to expand... Nearly one year is passed by... What do you think now about the possiblity to realize overloading in the near future? (When?) In view of the fact that Java already knows overloading, is this still a big effort?
Any news? Erel said: I don't know... Click to expand... Nearly one year is passed by... What do you think now about the possiblity to realize overloading in the near future? (When?) In view of the fact that Java already knows overloading, is this still a big effort?
Erel B4X founder Staff member Licensed User Longtime User Mar 19, 2012 #6 This question is about overloading in libraries. Not in Basic4android. The effort required to add overloading is not related to Java at all. It is not really an effort issue but more of a design issue. Language changes should be done very carefully as you can never go back.
This question is about overloading in libraries. Not in Basic4android. The effort required to add overloading is not related to Java at all. It is not really an effort issue but more of a design issue. Language changes should be done very carefully as you can never go back.
J Jost aus Soest Active Member Licensed User Longtime User Mar 19, 2012 #7 Erel said: This question is about overloading in libraries. Not in Basic4android. Click to expand... Oh sorry, I've found this thread by using the site search. (I wanted to avoid a duplicate thread.) But now I've found the possibility to search a specific forum: "B4P Search", right? BTW: So I should start a new thread in "wishlist"? Erel said: Language changes should be done very carefully as you can never go back. Click to expand... In general you're right about changing the language. But IMHO overloading adds only new functionality without effecting any already written B4A code.
Erel said: This question is about overloading in libraries. Not in Basic4android. Click to expand... Oh sorry, I've found this thread by using the site search. (I wanted to avoid a duplicate thread.) But now I've found the possibility to search a specific forum: "B4P Search", right? BTW: So I should start a new thread in "wishlist"? Erel said: Language changes should be done very carefully as you can never go back. Click to expand... In general you're right about changing the language. But IMHO overloading adds only new functionality without effecting any already written B4A code.
Erel B4X founder Staff member Licensed User Longtime User Mar 19, 2012 #8 So I should start a new thread in "wishlist"? Click to expand... Yes, please.