is(x = module) vs. __traits(isModule, x)

Max Samukha maxsamukha at gmail.com
Thu Oct 8 13:30:33 UTC 2020


On Thursday, 8 October 2020 at 11:47:48 UTC, Stefan Koch wrote:

>>
>> filter!(__traits(isPOD), A, B C); // no way
>> filter!(isPod, A, B, C); // can be
>
> or you use type functions which can use them at ctfe;)

You'd still have to wrap __traits in a type function to pass it 
to another function?







More information about the Digitalmars-d mailing list