Implementing interfaces using alias this

Jesse Phillips via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 16 11:50:44 PDT 2017


On Friday, 16 June 2017 at 08:34:21 UTC, Biotronic wrote:
> On Thursday, 15 June 2017 at 18:49:58 UTC, Jesse Phillips wrote:
>> wrap!IDuck
>
> Ah, so it does exist in Phobos. I thought it should be there, 
> but didn't find it. Thanks!
>
> --
>   Biotronic

Yeah, when Andrei introduced the wrap function I was disappointed 
it only wrapped classes. But in truth I haven't really been using 
it for structs either. That may partly be because it can't wrap 
to the range interface.


More information about the Digitalmars-d-learn mailing list