Is there any chance to introduce concepts/traits/typeClasses in dlang?

sighoya sighoya at gmail.com
Mon Dec 16 16:55:50 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.

Damn, it only works for classes but it will probably introduced 
for structs, too:
https://dlang.org/phobos/std_experimental_typecons.html


More information about the Digitalmars-d mailing list