Just finished a large refactoring related to the way variables and parameters are handled internally. Zero effect on B4X code behavior, but will make it easier to introduce new features. More to come...
Just finished a large refactoring related to the way variables and parameters are handled internally. Zero effect on B4X code behavior, but will make it easier to introduce new features. More to come...
No. It has nothing to do with it. You should create a Factory class that instantiates new objects based on some parameter. More information in a new thread.
so "Me" will be evaluated at run-time, not at compile time, like the "Name" parameter
"Me" will be set to the calling object not the object containing the Initialize sub.
is it a special case or it will be applied to all parameters?
'class method
Public Sub Example(x As Object = Me, y As Int = 4)
'calling:
Object1.Example
'compiler completes it as if the code is:
Object1.Example(Me, 4)