catchy phrase for this idiom?
Sean Kelly
sean at invisibleduck.org
Thu Mar 12 08:02:18 PDT 2009
Sean Kelly wrote:
> Andrei Alexandrescu wrote:
>> Hello,
>>
>>
>> I'm looking for a catchy phrase denoting this D idiom:
>>
>> template Blah(Stuff)
>> {
>> alias ... Blah;
>> }
>>
>> i.e., defining inside a template a symbol of the same name as the
>> template itself. Then you can use Blah!(X, Y) to mean Blah!(X, Y).Blah.
>>
>> What would be a catchy, descriptive, and memorable phrase for this?
>
> Template identity definition?
Oh, and should this actually be:
template Blah(Stuff)
{
alias ... this;
}
I thought that was the new syntax.
More information about the Digitalmars-d
mailing list