Code: Select all
MyFunc(1,, 3)
MyFunc(X, Y:=2, Z:=0) { ; Note that Z must still be optional in this case.
MsgBox %X%, %Y%, %Z%
}
It works fine.
Code: Select all
f7::MyFunc(1,5, )
MyFunc(X, Y:=2, Z:=0) { ; Note that Z must still be optional in this case.
MsgBox %X%, %Y%, %Z%
}
Third parameter(Z) is optional parameter like second parameter(Y), so why is it a problem?