A code example is this:
Code: Select all
new Example()
return
class Example
{
InstanceVar := ""
__New() {
Throw, Exception("Fail", -1)
}
}
Code: Select all
Error: Fail
Line#
002: new Example()
004: Return
---> 000: {
008: this.InstanceVar := ""
000: }
009: {
010: Throw,Exception("Fail", -1)
011: }
013: Exit
014: Exit
The current thread will exit.
I'm working around by declaring the variable inside __New().