Code: Select all
class MyClassName {
__New() {
this.property := "new-init" ; "this" works in __New()
}
property {
set => MyClassName.property := value ; if I use "this" here then it hangs and crashes and hangs
get => MyClassName.property ; if I use "this" here then it hangs and crashes and hangs
}
method(x,y) {
return x+y
}
}
myclass := MyClassName.new()
myclass.property := "change" ; comment this out to get init value
msgbox "test: " myclass.property
msgbox myclass.method(3,2)
Using AutoHotkey Unicode 64-bit 2.0-a108-a2fa0498
EDIT: oy sorry ... had to edit code