Templates everywhere

Walter Bright newshound1 at digitalmars.com
Sun Mar 14 18:42:01 PDT 2010


Bane wrote:
>> ======= C++ =========
>> template<class T> class Foo
>> {
>>      T member;
>> };
>> ======= D ===========
>> class Foo(T)
>> {
>>      T member;
>> }
>> =====================
>>
>> Yes, it looks like a trivial change, and perhaps it is. But it makes a 
>> world of difference, because it now looks like something I do get - a 
>> parameter list to something.
> 
> Fucking beautiful. I finally get it.


Ya know what's funny? I had to go and double check that the C++ syntax 
above was correct. Didn't have to do that for D.



More information about the Digitalmars-d mailing list