CRTP in D?

grauzone none at example.net
Wed Aug 19 08:07:28 PDT 2009


bearophile wrote:
> I don't know much C++. Can CRTP be used in D1 too, to improve the performance of some D1 code?
> 
> http://en.wikipedia.org/wiki/Curiously_Recurring_Template_Pattern

Why don't you just go and try?
If you hit forward referencing errors when using structs, try classes 
with final methods.

> Bye,
> bearophile


More information about the Digitalmars-d-learn mailing list