DIP 84: Static Inheritance

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 31 02:49:59 PDT 2015


On 10/31/2015 2:21 AM, Atila Neves wrote:
> Interesting. Like this perhaps?
>
> struct Struct : isInputRange ->
>
> static assert(__traits(compilesNoSupress, isInputRange!Struct));
> struct Struct
> //...

Yes. And I think it would have much wider applicability than just struct 
inheritance.



More information about the Digitalmars-d mailing list