I have problems when using Exit inside with the new operator.
I need help explaining what cause the different behaviours in the following examples.
First, the documention of Exit has this example
Code: Select all
#z::
Gosub, Sub2
MsgBox, This msgbox will never happen because of the EXIT.
return
Sub2:
Exit
Code: Select all
#1::
a:=new test
MsgBox, This msgbox will happen despite the EXIT.
return
#2::
b:=test.__new()
MsgBox, This msgbox will never happen because of the EXIT
return
#3::MsgBox, % "a.a: " a.a " b.a: " b.a
class test{
a:="a"
__new(){
;throw exception("e")
exit
}
}
Thank you for your time. Cheers.
Tested on win7, ahk unicode 64, 1.1.25.01.
Edit:
Thank you.lexikos wrote:Fixed by v1.1.25.02.