www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Trait compiles

Hello,
is there anyway to do something like this:

mixin template foo( exp)
{
	static if(__traits(compiles, exp))exp;
}

Thanks :)
Jan 15 2018