Mixin a function into a struct only if no member with that name already exists

Tobias Pankrath tobias at pankrath.net
Wed Dec 29 10:32:50 UTC 2021


On Wednesday, 29 December 2021 at 10:21:07 UTC, Stanislav Blinov 
wrote:
> On Wednesday, 29 December 2021 at 10:14:13 UTC, Tobias Pankrath 
> wrote:
>
>> How do I mixin a function only if it is not already present?
>
> Perhaps use opDispatch?

That's a great idea and I'll look into it.


More information about the Digitalmars-d-learn mailing list