How to move from Unique(someClass) to Unique(someInterface)?

Tejas notrealemail at gmail.com
Mon Nov 28 02:40:28 UTC 2022


On Sunday, 27 November 2022 at 17:06:31 UTC, vushu wrote:
> On Saturday, 16 May 2020 at 17:45:56 UTC, Konstantin wrote:
>> [...]
>
> I'm actually also very curious about this issue, since I come 
> from c++ where this is possible, and it is a very common 
> functionality for example for dependency inversion and 
> dependency injection or mocking. It would be very nice to have 
> this working.

I _think_ it's not working here because `Unique` is a `struct`, 
so there's no concept of inheritance here, meanwhile that it 
possible in `C++`


More information about the Digitalmars-d-learn mailing list