Why typeof(template) is void?

mogu via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 20 02:11:23 PDT 2016


On Wednesday, 20 July 2016 at 08:01:01 UTC, Lodovico Giaretta 
wrote:
> Note that void is a type, while S is not. So you can do:
>
> assert(is(void)) // is(type) returns true
> assert(!is(S))   // is(template) returns false;

Thanks very much. I should have noticed this before. T.T


More information about the Digitalmars-d-learn mailing list