"Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> writes:
> no, it's little bit different
> Default is only stored parameter value. You created two functions with
> two different signatures
> myfunc(int)
> myfunc(int, int)
Yeah, we already bit this bullet with variadic functions --- if you have
myfunc(int, float)
myfunc(int, variadic float[])
then it's ambiguous which one should be used for call "myfunc(11, 12.5)".
The sanest answer I can see is "so, don't do that".
regards, tom lane