Conditional Inheritance

lomereiter lomereiter at gmail.com
Sat Jul 13 22:30:56 PDT 2013


On Sunday, 14 July 2013 at 05:04:37 UTC, JS wrote:
> and while I'm at it I need to conditionally constrain types.
>
> interface A(T) where(!isBasicType!T, (T : B));
>
> which is suppose to require T to inherit from B if T is not 
> basic type.

interface A(T) if (isBasicType!T || is(T : B))


More information about the Digitalmars-d-learn mailing list