Тема: AHK: Class Delete
Не понимаю почему __Delete не вызывается.
Если строку с ObjBindMethod(this, "method") удалить или заменить на Func("method"), то всё работает.
ex := new class1()
ex.func.Call()
Return
class class1
{
__New()
{
; this.func := Func("method")
this.func := ObjBindMethod(this, "method")
}
__Delete()
{
MsgBox % A_ThisFunc
}
method()
{
MsgBox % A_ThisFunc
}
}
method()
{
MsgBox % A_ThisFunc
}
Win10x64 AhkSpy, Hotkey, ClockGui

