Update on the D-to-Jai guy: We have real problems with the language

Walter Bright newshound2 at digitalmars.com
Tue Nov 29 07:06:30 UTC 2022


On 11/27/2022 1:29 AM, FeepingCreature wrote:
> Like `is(T : U*, U)` instead of `isPointer`.

std.traits.isPointer is defined as:

     enum bool isPointer(T) = is(T == U*, U) && __traits(isScalar, T);

though I have no idea why the isScalar is there. When is a pointer ever not a 
scalar?


More information about the Digitalmars-d mailing list