On 6/11/23 5:25 PM, DLearner wrote:
Is there any way of picking up, at compile-time, all pointer types in one test?


What you want is `is(T : void *)` but probably to also catch all constancy flavors, `is(immutable(T) : immutable(void*))`

When you use `==` in an `is` expression, it's asking is this *exactly* that type. Using the colon is asking can it *implicitly convert* to that type.

-Steve
  • compile-time det... DLearner via Digitalmars-d-learn
    • Re: compile... Andy via Digitalmars-d-learn
    • Re: compile... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: com... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
    • Re: compile... Steven Schveighoffer via Digitalmars-d-learn

Reply via email to