TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote:
HaloO,
John M. Dlugosz wrote:
In C++, which must be resolved at compile time, the overloading
resolution mechanism demands that =every= parameter be at least as
good of a match, and one strictly better match. So the
implementation never guesses if worse-left/better-right is a better
fit than better-left/worse-right. However, you are assured that
everything is brought to your attention at program build time, before
run time, so complaining is not as serious as a run-time error where
you might prefer DWIM.
Perl 6 is the same, just at runtime with actual types of actual objects.
That's it.
Regards, TSa.
Then why is everyone against "no worse for all parameters", rather than
summing?