DIP 84: Static Inheritance

Atila Neves via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 2 05:58:23 PST 2015


On Saturday, 31 October 2015 at 09:49:59 UTC, Walter Bright wrote:
> 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.

True. Should I change the DIP?

Atila


More information about the Digitalmars-d mailing list