template specialization

Don nospam at nospam.com
Tue Jun 8 20:59:01 PDT 2010


Larry Luther wrote:
> Thanks guys.
> 
>   Simen asked:  "Is there a problem?".
> 
>   Well, I kind of expected a "ubyte" buffer to be matched with a 
> "get(T:ubyte)".
>   I thought methods were searched for the "best" match.

No, C++ does it that way, and it gets horrendously complicated.
In D, it has to match exactly.


More information about the Digitalmars-d-learn mailing list