Closed Etherum7 closed 4 years ago
f(1); // 1 "z:last"
Here "z:last"
is the "rightmost argument" (aka the "last argument").
Note that I didn't say "rightmost parameter". In a variadic-functions language, you are free to pass as few or as many arguments as you want no matter how many parameters are declared. This utility (as with pretty much all others) is applying its logic to the arguments, not the parameter; a function can't really pragmatically self-inspect its own definition to apply logic based on declared parameters.
It is written
but when only one argument is passed as in the second example the "z:last" is not assigned to the right most arguments.