pragma(msg,

Ellery Newcomer ellery-newcomer at utulsa.edu
Sat Jan 29 15:26:06 PST 2011


code:

template tct(T1,T2){
     string tct = T1.stringof ~ " " ~ T2.stringof ~
         typeof(true?T1.init:T2.init).stringof;
}
pragma(msg, tct!(shared(const(int))*, const(int*)));

result:

tct


why?


More information about the Digitalmars-d-learn mailing list