Understanding Templates: why can't anybody do it?

Nick Sabalausky a at a.a
Mon Mar 19 14:14:42 PDT 2012


"Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message 
news:jk81a6$2o7l$1 at digitalmars.com...
> 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.
>

I've been planning to do so with mine, just haven't gotten to it yet...




More information about the Digitalmars-d mailing list