Understanding Templates: why can't anybody do it?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Mar 19 12:27:04 PDT 2012


On 3/19/12 1:59 PM, Sean Kelly wrote:
> I see this a lot, and it's why I wrote the chapter on templates for
> Learn to Tango with D.  I don't think I can sort out releasing the
> chapter though.  One approach is to think of templates as
> compile-time polymorphism.  In Java, you might create a linked-list
> as:
[snip]

There have been a couple of long good answers in this thread, and it 
would be a shame to let them scroll by the way newsgroup messages do. I 
suggest authors to repackage their posts as blog entries or articles.

Andrei


More information about the Digitalmars-d mailing list