Yeah, I know. Currently bug fixes are way more important then new features and this one really really looks like a dirty hack. But the problem it solves is very real. I honestly don't know what to do about it.<div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Nov 5, 2012 at 6:38 PM, deadalnix <span dir="ltr"><<a href="mailto:deadalnix@gmail.com" target="_blank">deadalnix@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le 27/10/2012 07:39, Gor Gyolchanyan a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I've stumbled upon this numerous times and I wish I could automate this<br>
somehow.<br>
The idea is to have some mixin templates mixed into classes<br>
automatically when they inherit from some base class.<br>
For instance, advanced RTTI methods, which analyze the enclosing class<br>
at compile-time.<br>
Unfortunately, AFAIK, there's no way of doing it automatically and one<br>
needs to both derive from a certain class and mix in a certain mixin<br>
template manually.<br>
Is there a way to avoid the boilerplate and have it done automatically?<br>
<br></div>
--<br>
Bye,<br>
Gor Gyolchanyan.<br>
</blockquote>
<br>
I had this need several time too. But I don't think this should be a functionality added in D at this point.<br>
<br>
This is typically AOP stuff and it is much more interesting for D to think about how to integrate the whole AOP concept instead of hacking around each use case.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>