vendredi 1 juillet 2016

[not exactly a bug] Calls to Private routines

I know this question is rather critical and I think it will not be changed, but...

Currently you can call private routines of objects you created.

Code:
  [Main]
...
Dim MyObject As clsMyClass
...
CallSub(MyObject, "DoSomething") ' this should NOT work but it does


Code:
  [clsMyClass]
...
Private Sub DoSomething
...


At least a warning could be useful.

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/29fRklw
via IFTTT

Aucun commentaire:

Enregistrer un commentaire