class template specialization and inheritance
Edward Diener
eddielee_no_spam_here at tropicsoft.com
Wed May 14 17:54:29 PDT 2008
mki wrote:
> Hello!
>
> I just discovered the template syntax of D. I am very exited about its simplicity compared to C++.
>
> Now I ran into a template behavior I do not understand. This code:
> snip...
> class C(TT:A!(T)) {
> static void tellMe() {
> writefln("derived from A!(T).");
> }
> }
Huh ! What is T above ? I do not think that your use of T should be
legal. Are you sure you did not mean 'class C(TT:A!(TT)) { etc.' ?
More information about the Digitalmars-d
mailing list