CRTP in D?

div0 div0 at users.sourceforge.net
Wed Aug 19 10:32:23 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

downs wrote:
> 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
>>
>> Bye,
>> bearophile
> 
> We have this, except we call it "template mixin" :)

No, template mixins are not CRTP.
And yes CRTP does work in D.

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKjDcnT9LetA9XoXwRAiN8AJ4ghcTj9sYdU7tWdQRj1vVSxPzywgCeKP6f
FKwMutENm221/YmhvopIEDk=
=1Zt5
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-learn mailing list