New concept Mixin Methods

Timon Gehr timon.gehr at gmx.ch
Sun Dec 25 12:03:28 UTC 2022


On 12/25/22 12:07, Andre Pany wrote:
> 
> Does it make sense to create here a DIP or do you see any road blocker?

I have done this kind of thing manually in the past with mixin 
templates. The DMD frontend at some point turned unable to handle the 
combination of code generation, inheritance, recursion, and introspection.

So, go for it, but I am not so sure that there will be a working 
implementation.

Also, it would not be powerful enough for my use cases, it's sometimes 
useful to mixin some fields (or entire mixin templates) into child 
classes based on `typeof(this)`.


More information about the Digitalmars-d mailing list