default args for templates

Jacob Carlborg doob at me.com
Fri Jan 17 05:53:55 PST 2014


On 2014-01-17 14:44, Dicebot wrote:

> I think it is impossible in general case:
>
> pragma(msg, StructSymbol.stringof); // "StructSymbol" or
> "StructSymbol!(void)" ?
>
> Add aliases on top of it and it quickly gets messy.

The compiler would first try the template symbol, if that fails try the 
instantiation.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list