Eponymous template with static if

Nick Treleaven nick at geany.org
Wed Aug 16 15:47:22 UTC 2023


On Tuesday, 15 August 2023 at 21:24:34 UTC, sighoya wrote:
> On Tuesday, 15 August 2023 at 10:54:52 UTC, H. S. Teoh wrote:
>>
>> `is(T)` is standard idiom for checking whether T is a valid 
>> type.
>
> Thanks.
>
> Though, is there any case where it wouldn't be a valid type?

See:
https://dlang.org/spec/expression.html#is-type


More information about the Digitalmars-d mailing list