Templates convariance

Tom S h3r3tic at remove.mat.uni.torun.pl
Tue Jun 20 10:20:59 PDT 2006


Tom S wrote:
>             static if (is(T : T1)) {
>                 return cast(.List!(T1))cast(void*)this;
>             } else {

Btw, this test would have to be more complex in case of primitive types, 
but then the 'covariance' couldn't quite work either.


-- 
Tomasz Stachowiak  /+ a.k.a. h3r3tic +/



More information about the Digitalmars-d mailing list