Re: Suggestions on documentation improvements
Posted: 12 Feb 2019, 05:20
"https://www.autohotkey.com/docs/Functions.htm#VariadicCall
this here says
also array of parameters may contain named items, "array" implies [] which doesnt have "named items"
change to associative array or object
on a side note, maybe call * something other than "variadic function call". what is a variadic function call?
"array expansion operator" would be more selfexplanatory
this here says
but the following will work as well:The array of parameters may contain named items when calling a user-defined function; in any other case, named items are not supported.
Code: Select all
FuncObj := Func("someuserdefinedfunction")
%FuncObj%({first: "hello", second: "world"}*)
change to associative array or object
on a side note, maybe call * something other than "variadic function call". what is a variadic function call?
Code: Select all
variadic(params*) {
}
variadic(123, "abc") ; im doing a 'variadic function call'
normal(a, b) {
}
normal([123, "abc"]*) ; im doing a 'variadic function call'