function overload on full signature?
monarch_dodra
monarchdodra at gmail.com
Thu Nov 15 09:33:23 PST 2012
On Thursday, 15 November 2012 at 17:18:04 UTC, Rob T wrote:
> I've been wondering for a couple of years about why overloading
> stops at the argument sig ...
>
> [SNIP]
>
> --rt
I'd say because overall, you gain *very* little out of it, and it
costs you much more complex compiler rules.
Most of all though, I'd say it is a bad idea in and out of
itself: If you overload on the return type, you open the
floodgates to call ambiguity.
I mean, are there even any real use-cases for overload on return
type?
More information about the Digitalmars-d
mailing list