AliasSeq + isExpression type specialization behavior

Brian Schott via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 10 05:47:22 PST 2015


On Tuesday, 10 November 2015 at 10:28:45 UTC, Marc Schütz wrote:
> This fails, too:
> static assert(is(AliasSeq!(char) : AliasSeq!(dchar)));
>
> Which makes sense IMO, because it can be thought of as an 
> unnamed struct, cp. the following:
>
> struct A { char c; }
> struct B { dchar c; }
> static assert(is(A : B)); // fails, as expected

You're talking about Tuple. I'm talking about AliasSeq.


More information about the Digitalmars-d-learn mailing list