Is there any chance to introduce concepts/traits/typeClasses in dlang?
sighoya
sighoya at gmail.com
Mon Dec 16 17:00:33 UTC 2019
On Monday, 16 December 2019 at 16:58:22 UTC, jmh530 wrote:
> On Monday, 16 December 2019 at 16:45:12 UTC, sighoya wrote:
>> I thought about your InputRange!T example and took a look at
>> https://dlang.org/library/std/typecons/wrap.html
>>
>> I quite nice solves the problem with passing structures to
>> interfaces, though it would still be nice if this is done
>> automatically.
>
> wrap only works for interfaces and classes, not structs.
Oh we overlapped to the same time, but yes unfortunately it is
true, only experimental d allows for it I think.
More information about the Digitalmars-d
mailing list