New concept Mixin Methods

Paul Backus snarwin at gmail.com
Sun Dec 25 18:31:52 UTC 2022


On Sunday, 25 December 2022 at 18:26:53 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> A long time ago I considered something similar, its a very neat 
> idea.
>
> Where its needed most is at the module level, for any imports 
> get it mixed in. This covers pretty much anything rather than 
> being specific to classes.

You're supposed to tell horror stories on Halloween, not 
Christmas!

If you really want #include in D, you can use 
mixin(import("filename")). Personally, I would much prefer my 
modules to remain modular, please and thank you.


More information about the Digitalmars-d mailing list