Has anyone noticed this/posted re. this before?
Would this be reasonably straightforward to fix in AHK v1?
(The Sort command failing silently for custom comparator functions is another issue.)
(Something else that could have an error message: incomplete ternary operators.)
Code: Select all
;q:: ;test dynamic function calls silently fail
vFunc1 := "MyFunc"
vFunc2 := "MyNonFunc"
%vFunc1%()
%vFunc2%() ;silently fails (AHK v1)
vText := %vFunc2%() ;silently fails (AHK v1)
return
;w:: ;test Sort silently fails
vText := "a,b,c,d,e"
Sort, vText, D, F MySortFunc
MsgBox, % vText
vText := "a,b,c,d,e"
Sort, vText, D, F MyNonFunc
MsgBox, % vText
return
MyFunc()
{
MsgBox
}
MySortFunc(a, b, c)
{
MsgBox
}