What is the proper way to outline static-if-conditions ?
Elmar
chrehme at gmx.de
Sun Oct 10 15:05:49 UTC 2021
On Sunday, 10 October 2021 at 15:01:17 UTC, Elmar wrote:
>
> ```d
> enum isPointedStaticArray(T) = is(PointerTarget!T : P[N], P,
> size_t N);
> ```
>
> ```d
> enum isPointedStaticArray(X : P*, P) =
> .isStaticArray!(PointerTarget!X);
> ```
>
`isStaticArray` is a good example that makes me ask how to
outline an `is()` expression without losing the error catching
semantics of the inlined `is()` expression.
More information about the Digitalmars-d-learn
mailing list