__traits(parent) borken on templates

Shachar Shemesh shachar at weka.io
Tue Dec 12 17:58:55 UTC 2017


On 12/12/17 17:20, Stefan Koch wrote:
> On Tuesday, 12 December 2017 at 14:49:04 UTC, Shachar Shemesh wrote:
>> module foo;
>>
>> import std.traits;
>>
>> [...]
> 
> A template is not a symbol as is.
> And eponymous templates alias them-selfs to the symbol they define on 
> instancing

And yet, "bar", which is a template, works, but "bar!int", which is an 
identifier, doesn't.

Shachar


More information about the Digitalmars-d mailing list