Code: Select all
class TestClass {
x := () => MsgBox("x")
y := "y"
z
{
get {
return this.x
}
set {
this.x := value
}
}
f() {
this.x()
}
}
a := () => MsgBox("a")
a()
test := TestClass() ;OK
MsgBox(test.y) ;OK
test.x() ;Error: Too many parameters passed to function.
test.z() ;Error: Too many parameters passed to function.
test.f() ;Error: Too many parameters passed to function.
How do I do that? If I couldn't store functions on variables, then the `a` example wouldn't work, and I can access the `y` variable fine, so I'm at a loss here.