On 10/02/2011 08:48 PM, Philippe Sigaud wrote:
On Sun, Oct 2, 2011 at 19:12, Timon Gehr<timon.g...@gmx.ch>  wrote:

Types are symbols, so just using alias template arguments works.

Hmm, no.


template isSymbol(alias a)
{
     enum isSymbol = true;
}

void main()
{
     enum a = isSymbol!int;
}

Error: template instance isSymbol!(int) does not match template
declaration isSymbol(alias a)

template isSymbol(alias T){
    enum isSymbol=true;
}

template ID(T){alias T x;}

void main(){
    bool mooh=isSymbol!(ID!int);
}

Well, that should be fixed.

Reply via email to