Comparing two AliasSeq
Yuxuan Shui via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Mar 24 22:46:52 PDT 2017
On Saturday, 25 March 2017 at 05:20:44 UTC, Jonathan M Davis
wrote:
> On Saturday, March 25, 2017 04:57:26 Yuxuan Shui via
> Digitalmars-d-learn wrote:
>> [...]
>
> An AliasSeq isn't really ever a type. AliasSeq!(int, float) is
> a list of types, not a type itself, and is expressions supports
> comparing those in at least some instances, because is
> expressions operate on types, and having them support a list of
> types is useful. Calling AliasSeq!(int, float) a type would be
> like claiming that the (int, float) in foo!(int, float) a type.
> It's a list - a list of template arguments in this case - but
> it's still a list and not itself a type.
>
> [...]
Because I want to make use of the "static foreach unrolling"
feature (I don't know what's the official name).
>
> [...]
More information about the Digitalmars-d-learn
mailing list