Understanding Templates: why can't anybody do it?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Mar 17 10:55:44 PDT 2012


On 3/17/12 12:14 PM, Entity325 wrote:
> Who's with me? Anybody have a short(but COMPLETE!) example of code that
> makes use of Templates that you actually understand what's going on there?

You're on to something here. Then, as usual, from idea to realization 
there are quite a few steps.

I took a complementary approach in TDPL: there's no chapter on templates 
at all. Templates are naturally interwoven with whatever topic is at 
hand, wherever they're useful. I hoped people would learn templates 
without even knowing it.


Andrei


More information about the Digitalmars-d mailing list