I dun a DIP, possibly the best DIP ever
Walter Bright
newshound2 at digitalmars.com
Sat Apr 25 09:33:19 UTC 2020
On 4/24/2020 1:55 PM, Walter Bright wrote:
> Another approach to resolving the original problem (template instantiation
> bloat) is for the compiler to recognize templates like AliasSeq as "special" and
> implement them directly.
>
> For example, AliasSeq is defined as:
>
> template AliasSeq(TList...) { alias AliasSeq = TList; }
>
> This pattern is so simple it can be recognized by the compiler. (Having
> std.meta.AliasSeq being a special name known to the compiler is not necessary.)
Giving this a try:
https://github.com/dlang/dmd/pull/11057
More information about the Digitalmars-d
mailing list