D's templates now seem weak to me... [not anymore]

Ben Phillips Ben_member at pathlink.com
Mon Feb 20 11:13:06 PST 2006


In article <dtd2gb$2dcn$1 at digitaldaemon.com>, Sean Kelly says...
>
>Ben Phillips wrote:
>> According to the docs, "Templates cannot be used to add non-static members or
>> functions to classes. For example: [...]". Why? This is just plain stupid in my
>> opinion
>
>It's also not entirely true.  Templates cannot be used to add virtual 
>members or functions to classes, but they can add (implicitly final) 
>non-static membes to classes.  This is the same as in C++.
>
>
>Sean

Ah... thanks! The info you and Oskar provided helped me a lot!





More information about the Digitalmars-d mailing list