Re: AliasSeq!() deletes item in type list

2020-08-22 Thread data pulverizer via Digitalmars-d-learn
On Saturday, 22 August 2020 at 21:52:53 UTC, Paul Backus wrote: On Saturday, 22 August 2020 at 21:45:35 UTC, data pulverizer wrote: AliasSeq's don't nest and automatically expand when you use them, so when you write MyTemplate!(Nothing, types) it gets expanded to MyTemplate!(bool,

Re: AliasSeq!() deletes item in type list

2020-08-22 Thread Paul Backus via Digitalmars-d-learn
On Saturday, 22 August 2020 at 21:45:35 UTC, data pulverizer wrote: Hi all, just wandering if this is a bug, I certainly didn't expect the output: ```d alias AliasSeq(T...) = T; alias Nothing = AliasSeq!(); template MyTemplate(S, Args...) { pragma(msg, "Args: ", Args); } void main() {

AliasSeq!() deletes item in type list

2020-08-22 Thread data pulverizer via Digitalmars-d-learn
Hi all, just wandering if this is a bug, I certainly didn't expect the output: ```d alias AliasSeq(T...) = T; alias Nothing = AliasSeq!(); template MyTemplate(S, Args...) { pragma(msg, "Args: ", Args); } void main() { alias types = AliasSeq!(bool, string, ubyte, short, ushort); alias