LucaMs Expert Licensed User Longtime User Jul 2, 2016 #1 I know this thing is rather critical and I think it will not be changed, but... Currently you can call private routines of objects from outside: B4X: [Main] ... Dim MyObject As clsMyClass ... CallSub(MyObject, "DoSomething") ' this should NOT work but it does B4X: [clsMyClass] ... Private Sub DoSomething ... At least a warning could be useful. Last edited: Jul 2, 2016
I know this thing is rather critical and I think it will not be changed, but... Currently you can call private routines of objects from outside: B4X: [Main] ... Dim MyObject As clsMyClass ... CallSub(MyObject, "DoSomething") ' this should NOT work but it does B4X: [clsMyClass] ... Private Sub DoSomething ... At least a warning could be useful.
Erel B4X founder Staff member Licensed User Longtime User Jul 3, 2016 #2 Moved to the questions forum. Upvote 0
LucaMs Expert Licensed User Longtime User Jul 3, 2016 #3 Well, it is not a question, it is a fact, an "abnormal" behavior. Maybe I should have just ask for a warning message for this (a "wish"). Last edited: Jul 3, 2016 Upvote 0
Well, it is not a question, it is a fact, an "abnormal" behavior. Maybe I should have just ask for a warning message for this (a "wish").