I have a problem.
When I call a method in a specific way "this" contains the first parameter - (logic considering "this" is just a hidden parameter):
Code: Select all
class TestClass{
TestMethod(){
Msgbox % this
}
}
Class TestClass2{
__new(){
this.TestSubClass:=new TestClass()
}
}
Var:="TestMethod"
Test:=new TestClass2()
Test.TestSubClass[Var].("Fail") ; I cant use Test.TestSubClass.TestMethod() in the specific context