Thread overview | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 12, 2009 catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
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? Thanks, Andrei |
March 12, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | 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 forwarding?
Jerry
|
March 12, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | 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?
>
>
> Thanks,
>
> Andrei
Selfish template?
|
March 12, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Thu, 12 Mar 2009 06:33:34 -0700, Andrei Alexandrescu <SeeWebsiteForEmail@erdani.org> 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? > > >Thanks, > >Andrei Reciprocal template declaration? Gide |
March 12, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | 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?
|
March 12, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | 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.
|
March 12, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | On Thu, 12 Mar 2009 11:01:21 -0400, Sean Kelly <sean@invisibleduck.org> 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?
Sounds good.
I think Template Identity sounds good too.
-Steve
|
March 12, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | eponymous alias?
--bb
On Fri, Mar 13, 2009 at 12:55 AM, Steven Schveighoffer <schveiguy@yahoo.com> wrote:
> On Thu, 12 Mar 2009 11:01:21 -0400, Sean Kelly <sean@invisibleduck.org> 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?
>
> Sounds good.
>
> I think Template Identity sounds good too.
>
> -Steve
>
|
March 12, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | eponymous alias?
--bb
On Fri, Mar 13, 2009 at 12:55 AM, Steven Schveighoffer <schveiguy@yahoo.com> wrote:
> On Thu, 12 Mar 2009 11:01:21 -0400, Sean Kelly <sean@invisibleduck.org> 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?
>
> Sounds good.
>
> I think Template Identity sounds good too.
>
> -Steve
>
|
March 12, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | Reply to Andrei,
> 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?
>
> Thanks,
>
> Andrei
>
Template ALIASING -> taliasing or tail-asing
|
Copyright © 1999-2021 by the D Language Foundation