I'm not sure if this is actually a bug, but I've just encountered some strange behaviour when calling a class method without passing a parameter to it. I've discussed this with sj1k (Sjc1000) and a few other guys on #ahk and they hadn't experienced that problem before either.
Consider this code (expand):
Code: Select all
class Test {
method(val) {
MsgBox val: %val%
}
}
function() ; raises error
t := new Test()
t.method() ; just stops
ExitApp
function(val) {
MsgBox val: %val%
}
Thanks for your help!
Regards,
logithack