Daestrum Expert Licensed User Longtime User Aug 2, 2023 #1 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)
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 Aug 2, 2023 #2 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++?
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 Aug 5, 2023 #3 That is why you sometimes get MyView.initialize and MyView.initialize2(param as object)