BoundFunc Cannot Be Used Directly As Function Parameter?
Posted: 20 Oct 2017, 09:38
I couldn't find anything in the docs about this.
This works as expected:
This throws an error (the error varies between v1 and v2, but it's present in every version I tested)
This works as expected:
Code: Select all
fn := Func("FnA").Bind(0)
Hotkey("NumpadAdd", fn)
Return
FnA(num := 0)
{
MsgBox(num)
}
Code: Select all
Hotkey("NumpadAdd", Func("FnA").Bind(0))
Return
FnA(num := 0)
{
MsgBox(num)
}