Re: catchy phrase for this idiom?

2009-03-16 Thread Kagamin
Tim M Wrote: > >> Andrei Alexandrescu Wrote: > >> > >>> I'm looking for a catchy phrase denoting this D idiom: > >>> > >>> template Blah(Stuff) > >>> { > >>> alias ... Blah; > >>> } > >> > >> verbose templated declaration. > > > > As far as I'm concerned, we've found a winner right here ;) >

Re: catchy phrase for this idiom?

2009-03-15 Thread BCS
Hello Tim, On Sun, 15 Mar 2009 06:27:42 +1300, BCS wrote: there is no compact form for alias but this T Foo(T)(T t) { return t; } is internally identical the the more verbose form: template Foo(T) { T Foo(T t){ return t; } } Hi BCS. On this page: http://www.digitalmars.com/d/1.0/template

Re: catchy phrase for this idiom?

2009-03-15 Thread Tim M
On Sun, 15 Mar 2009 06:27:42 +1300, BCS wrote: there is no compact form for alias but this T Foo(T)(T t) { return t; } is internally identical the the more verbose form: template Foo(T) { T Foo(T t){ return t; } } Hi BCS. On this page: http://www.digitalmars.com/d/1.0/template.html sc

Re: catchy phrase for this idiom?

2009-03-14 Thread Sergey Gromov
Thu, 12 Mar 2009 18:21:04 -0700, Andrei Alexandrescu wrote: > Sergey Gromov wrote: >> Thu, 12 Mar 2009 06:33:34 -0700, Andrei Alexandrescu wrote: >> >>> Hello, >>> >>> I'm looking for a catchy phrase denoting this D idiom: >>> >>> template Blah(Stuff) >>> { >>> alias ... Blah; >>> } >>> >>> i

Re: catchy phrase for this idiom?

2009-03-14 Thread Manfred Nowak
Andrei Alexandrescu wrote: > "Eigen" in German means "its own", proper. The only justification for using "Eigen" is this words awareness level stemming from linear algebra; but D's idiom, for which a catchy phrase is searched, does not have the degree of freedom of the objects for which the wo

Re: catchy phrase for this idiom?

2009-03-14 Thread BCS
Hello Tim, What's verbose about a template with a single declaration? Verbose adj. "Using or containing a great and usually an excessive number of words" there is no compact form for alias but this T Foo(T)(T t) { return t; } is internally identical the the more verbose form: template Fo

Re: catchy phrase for this idiom?

2009-03-14 Thread Tim M
On Fri, 13 Mar 2009 22:49:00 +1300, Nick Sabalausky wrote: "Kagamin" wrote in message news:gpd8ka$1np...@digitalmars.com... Andrei Alexandrescu Wrote: I'm looking for a catchy phrase denoting this D idiom: template Blah(Stuff) { alias ... Blah; } verbose templated declaration. As f

Re: catchy phrase for this idiom?

2009-03-13 Thread Simen Kjaeraas
Robert Fraser wrote: Andrei Alexandrescu wrote: Christopher Wright 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 itse

Re: catchy phrase for this idiom?

2009-03-13 Thread Robert Fraser
Andrei Alexandrescu wrote: Christopher Wright 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

Re: catchy phrase for this idiom?

2009-03-13 Thread Andrei Alexandrescu
BCS wrote: Hello Bill, Kinda not the same thing if you ask me. Eigen-blah generally refers to something where you've captured the essence of something better by representing it using a different set of basis functions. This doesn't seem to have much of anything to do with that. Its just iden

Re: catchy phrase for this idiom?

2009-03-13 Thread Christopher Wright
Bill Baxter wrote: Kinda not the same thing if you ask me. Eigen-blah generally refers to something where you've captured the essence of something better by representing it using a different set of basis functions. That's pretty specific for a German word meaning 'self'.

Re: catchy phrase for this idiom?

2009-03-13 Thread Nick Sabalausky
"Kagamin" wrote in message news:gpd8ka$1np...@digitalmars.com... > Andrei Alexandrescu Wrote: > >> I'm looking for a catchy phrase denoting this D idiom: >> >> template Blah(Stuff) >> { >> alias ... Blah; >> } > > verbose templated declaration. As far as I'm concerned, we've found a winner r

Re: catchy phrase for this idiom?

2009-03-13 Thread Kagamin
Andrei Alexandrescu Wrote: > I'm looking for a catchy phrase denoting this D idiom: > > template Blah(Stuff) > { > alias ... Blah; > } verbose templated declaration.

Re: catchy phrase for this idiom?

2009-03-12 Thread Bill Baxter
On Fri, Mar 13, 2009 at 12:07 PM, Walter Bright wrote: > Bill Baxter wrote: >> >> But it is what the word "eponymous" is about. > > I can't even pronounce "eponymous". Not too catchy :-) > R.E.M. thought it was catchy enough to name an album that. :-) Seriously, though, I don't really care wha

Re: catchy phrase for this idiom?

2009-03-12 Thread Bill Baxter
On Fri, Mar 13, 2009 at 1:30 PM, BCS wrote: > Hello Bill, > >> Kinda not the same thing if you ask me.  Eigen-blah generally refers >> to something where you've captured the essence of something better by >> representing it using a different set of basis functions. >> >> This doesn't seem to have

Re: catchy phrase for this idiom?

2009-03-12 Thread BCS
Hello Bill, Kinda not the same thing if you ask me. Eigen-blah generally refers to something where you've captured the essence of something better by representing it using a different set of basis functions. This doesn't seem to have much of anything to do with that. Its just identity or same

Re: catchy phrase for this idiom?

2009-03-12 Thread Walter Bright
Bill Baxter wrote: But it is what the word "eponymous" is about. I can't even pronounce "eponymous". Not too catchy :-)

Re: catchy phrase for this idiom?

2009-03-12 Thread Bill Baxter
On Thu, Mar 12, 2009 at 6:24 PM, Andrei Alexandrescu wrote: > Christopher Wright 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

Re: catchy phrase for this idiom?

2009-03-12 Thread Andrei Alexandrescu
Sergey Gromov wrote: Thu, 12 Mar 2009 06:33:34 -0700, 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 Bla

Re: catchy phrase for this idiom?

2009-03-12 Thread Andrei Alexandrescu
Christopher Wright 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).

Re: catchy phrase for this idiom?

2009-03-12 Thread Ary Borenszweig
Denis Koroskin escribió: On Fri, 13 Mar 2009 03:24:10 +0300, Jarrett Billingsley wrote: On Thu, Mar 12, 2009 at 5:05 PM, Steven Schveighoffer wrote: On Thu, 12 Mar 2009 16:37:06 -0400, Jarrett Billingsley wrote: On Thu, Mar 12, 2009 at 4:20 PM, Steven Schveighoffer wrote: How do you d

Re: catchy phrase for this idiom?

2009-03-12 Thread Denis Koroskin
On Fri, 13 Mar 2009 03:24:10 +0300, Jarrett Billingsley wrote: On Thu, Mar 12, 2009 at 5:05 PM, Steven Schveighoffer wrote: On Thu, 12 Mar 2009 16:37:06 -0400, Jarrett Billingsley wrote: On Thu, Mar 12, 2009 at 4:20 PM, Steven Schveighoffer wrote: How do you do this without the Templat

Re: catchy phrase for this idiom?

2009-03-12 Thread Jarrett Billingsley
On Thu, Mar 12, 2009 at 5:05 PM, Steven Schveighoffer wrote: > On Thu, 12 Mar 2009 16:37:06 -0400, Jarrett Billingsley > wrote: > >> On Thu, Mar 12, 2009 at 4:20 PM, Steven Schveighoffer >> wrote: >>> >>> How do you do this without the Template Identity syntax? >>> (I'm going to start calling it

Re: catchy phrase for this idiom?

2009-03-12 Thread BCS
Reply to Christopher, Eigentemplate. Doh! :)

Re: catchy phrase for this idiom?

2009-03-12 Thread BCS
Reply to Denis, On Fri, 13 Mar 2009 00:56:48 +0300, BCS wrote: Under some conditions (I never figured out the details) you end up being forced to do that anyway. However in heavy code you can literally get MB of meta data generated for struct that are never actually used for anything. Th

Re: catchy phrase for this idiom?

2009-03-12 Thread Christopher Wright
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 cat

Re: catchy phrase for this idiom?

2009-03-12 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:gpbnms$2ba...@digitalmars.com... > "Andrei Alexandrescu" wrote in message > news:gpb2vd$18u...@digitalmars.com... >> Hello, >> >> >> I'm looking for a catchy phrase denoting this D idiom: >> >> template Blah(Stuff) >> { >>alias ... Blah; >> } >> > > U

Re: catchy phrase for this idiom?

2009-03-12 Thread Denis Koroskin
On Fri, 13 Mar 2009 00:56:48 +0300, BCS wrote: Reply to Denis, On Thu, 12 Mar 2009 23:56:55 +0300, BCS wrote: Reply to Denis, Back on topic, I don't see anything wrong with this code. It defines exactly one alias. I also think that it should define exactly one /public/ alias: template Bl

Re: catchy phrase for this idiom?

2009-03-12 Thread Sergey Gromov
Thu, 12 Mar 2009 06:33:34 -0700, 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!

Re: catchy phrase for this idiom?

2009-03-12 Thread BCS
Reply to Denis, On Thu, 12 Mar 2009 23:56:55 +0300, BCS wrote: Reply to Denis, Back on topic, I don't see anything wrong with this code. It defines exactly one alias. I also think that it should define exactly one /public/ alias: template Blah(T) { private alias Foo!(T).A Tmp1; private alia

Re: catchy phrase for this idiom?

2009-03-12 Thread Steven Schveighoffer
On Thu, 12 Mar 2009 16:37:06 -0400, Jarrett Billingsley wrote: On Thu, Mar 12, 2009 at 4:20 PM, Steven Schveighoffer wrote: How do you do this without the Template Identity syntax? (I'm going to start calling it this to promote the term I thought was best ;) I'm not suggesting it be r

Re: catchy phrase for this idiom?

2009-03-12 Thread Denis Koroskin
On Thu, 12 Mar 2009 23:56:55 +0300, BCS wrote: Reply to Denis, Back on topic, I don't see anything wrong with this code. It defines exactly one alias. I also think that it should define exactly one /public/ alias: template Blah(T) { private alias Foo!(T).A Tmp1; private alias Bar!(Tmp1!(T))

Re: catchy phrase for this idiom?

2009-03-12 Thread BCS
Reply to Denis, Back on topic, I don't see anything wrong with this code. It defines exactly one alias. I also think that it should define exactly one /public/ alias: template Blah(T) { private alias Foo!(T).A Tmp1; private alias Bar!(Tmp1!(T)).B Tmp2; static if (Tmp2.C!(T)) { private alias Tm

Re: catchy phrase for this idiom?

2009-03-12 Thread Jarrett Billingsley
On Thu, Mar 12, 2009 at 4:26 PM, Andrei Alexandrescu wrote: > > Nice. The problem however is that very, very often I need to store > intermediate results, otherwise the code becomes quickly unreadable or > spread across too many different non-reusable templates. What I now do is > e.g. create a sh

Re: catchy phrase for this idiom?

2009-03-12 Thread Jarrett Billingsley
On Thu, Mar 12, 2009 at 4:20 PM, Steven Schveighoffer wrote: > > How do you do this without the Template Identity syntax? > (I'm going to start calling it this to promote the term I thought was best > ;) I'm not suggesting it be removed. I'm suggesting that if you were only able to put one symbo

Re: catchy phrase for this idiom?

2009-03-12 Thread Denis Koroskin
On Thu, 12 Mar 2009 23:20:07 +0300, Steven Schveighoffer wrote: On Thu, 12 Mar 2009 16:11:49 -0400, Jarrett Billingsley wrote: On Thu, Mar 12, 2009 at 9:33 AM, Andrei Alexandrescu wrote: Hello, I'm looking for a catchy phrase denoting this D idiom: template Blah(Stuff) { alias ... Bla

Re: catchy phrase for this idiom?

2009-03-12 Thread Andrei Alexandrescu
Jarrett Billingsley wrote: On Thu, Mar 12, 2009 at 9:33 AM, 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

Re: catchy phrase for this idiom?

2009-03-12 Thread Steven Schveighoffer
On Thu, 12 Mar 2009 16:11:49 -0400, Jarrett Billingsley wrote: On Thu, Mar 12, 2009 at 9:33 AM, 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

Re: catchy phrase for this idiom?

2009-03-12 Thread Denis Koroskin
On Thu, 12 Mar 2009 23:11:49 +0300, Jarrett Billingsley wrote: On Thu, Mar 12, 2009 at 9:33 AM, 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 a

Re: catchy phrase for this idiom?

2009-03-12 Thread Jarrett Billingsley
On Thu, Mar 12, 2009 at 9:33 AM, 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,

Re: catchy phrase for this idiom?

2009-03-12 Thread Nick Sabalausky
"Andrei Alexandrescu" wrote in message news:gpb2vd$18u...@digitalmars.com... > Hello, > > > I'm looking for a catchy phrase denoting this D idiom: > > template Blah(Stuff) > { >alias ... Blah; > } > Unitemplate?

Re: catchy phrase for this idiom?

2009-03-12 Thread Don
Don 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 wo

Re: catchy phrase for this idiom?

2009-03-12 Thread Walter Bright
name promotion

Re: catchy phrase for this idiom?

2009-03-12 Thread Ary Borenszweig
BCS wrote: 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,

Re: catchy phrase for this idiom?

2009-03-12 Thread BCS
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

Re: catchy phrase for this idiom?

2009-03-12 Thread Bill Baxter
eponymous alias? --bb On Fri, Mar 13, 2009 at 12:55 AM, Steven Schveighoffer wrote: > On Thu, 12 Mar 2009 11:01:21 -0400, Sean Kelly > wrote: > >> Andrei Alexandrescu wrote: >>> >>> Hello, >>>  I'm looking for a catchy phrase denoting this D idiom: >>>  template Blah(Stuff) >>> { >>>   alias ..

Re: catchy phrase for this idiom?

2009-03-12 Thread Steven Schveighoffer
On Thu, 12 Mar 2009 11:01:21 -0400, 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

Re: catchy phrase for this idiom?

2009-03-12 Thread 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.

Re: catchy phrase for this idiom?

2009-03-12 Thread Sean Kelly
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 cat

Re: catchy phrase for this idiom?

2009-03-12 Thread Gide Nwawudu
On Thu, 12 Mar 2009 06:33:34 -0700, 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

Re: catchy phrase for this idiom?

2009-03-12 Thread Don
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 cat

Re: catchy phrase for this idiom?

2009-03-12 Thread jq
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).Bla

catchy phrase for this idiom?

2009-03-12 Thread Andrei Alexandrescu
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 memora