Is there any chance to introduce concepts/traits/typeClasses in dlang?
jmh530
john.michael.hall at gmail.com
Mon Dec 16 16:58:22 UTC 2019
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.
More information about the Digitalmars-d
mailing list