AliasSeq!() deletes item in type list
data pulverizer
data.pulverizer at gmail.com
Sat Aug 22 22:06:42 UTC 2020
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, string, ubyte, short, ushort)
>
> So `bool` gets bound to the first parameter, `S`, and the rest
> of the arguments get bound to `Args`.
>
That totally makes sense, it was in code where S could be
something some times but Nothing at other times, and I was
getting issues with the Nothing situation, but when I look at
your explanation I should have totally expected it.
Thanks again!
More information about the Digitalmars-d-learn
mailing list