Just curious why ...

Daestrum

Expert
Licensed User
Longtime User
B4X doesn't allow you to have subs with the same name but with different signatures.

(I guess it's possibly due to a hashmap of sub names the IDE uses)
 

aeric

Expert
Licensed User
Longtime User
You mean function overloading?
I guess that maybe that is Erel's decision not to make B4X looks complicated or confusing. More like classic VB6 but B4X doesn't have Optional parameters.
Another guess maybe for cross languages compatibility due to conversion to Java, Objective-C and C++?
 

Cableguy

Expert
Licensed User
Longtime User
That is why you sometimes get MyView.initialize and MyView.initialize2(param as object)
 
Top