automatic mixin in classes
Gor Gyolchanyan
gor.f.gyolchanyan at gmail.com
Fri Oct 26 22:39:47 PDT 2012
I've stumbled upon this numerous times and I wish I could automate this
somehow.
The idea is to have some mixin templates mixed into classes automatically
when they inherit from some base class.
For instance, advanced RTTI methods, which analyze the enclosing class at
compile-time.
Unfortunately, AFAIK, there's no way of doing it automatically and one
needs to both derive from a certain class and mix in a certain mixin
template manually.
Is there a way to avoid the boilerplate and have it done automatically?
--
Bye,
Gor Gyolchanyan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121027/60907186/attachment-0001.html>
More information about the Digitalmars-d
mailing list