Templates array detection
ixid
nuaccount at gmail.com
Wed Dec 12 08:26:01 PST 2012
On Wednesday, 12 December 2012 at 14:21:22 UTC, bearophile wrote:
> ixid:
>
>> It's a pity it doesn't see T[] as the best fit and go with it
>> on that basis.
>
> It's not a pity, it's a good design. "Best fit" makes
> language&compiler complex, less predictable for the programmer,
> etc.
>
> Bye,
> bearophile
It seems very similar to a function overload to me. Why is
picking T[] in preference to T different to picking uint over
ulong for an overloaded function used on a uint?
More information about the Digitalmars-d-learn
mailing list