Problems with throw in __Delete meta function
Posted: 24 Jun 2017, 05:09
There is inconsistent behaviour of the error message generated by the throw command when used in the __Delete meta function.
Example 1, no error message, (unexpected)
Example 2, error message is shown, (expected, hadn't it been for the above)
Example 3, error message is shown after the msgbox has shown, (even less expected)
Note, one can still catch the errors using try - catch in all of the above cases, either by try new a or try throw.
Tested on 64U 1.1.26.00, win7
Example 1, no error message, (unexpected)
Code: Select all
new a
class a {
__Delete(){
throw
}
}
Code: Select all
new a
return
class a {
__Delete(){
throw
}
}
Code: Select all
new a
msgbox
return
class a {
__Delete(){
throw
}
}
Tested on 64U 1.1.26.00, win7