Why do we even bother with `in` when we can do: alias In(T) = const scope T;
void test(In!int n) {
pragma(msg, typeof(n));
}
?
onlineapp.d(3): Deprecation: storage class `scope` has no effect
in type aliases
const(int) ...oh
Meta via Digitalmars-d-announce Wed, 09 Feb 2022 18:16:10 -0800
Why do we even bother with `in` when we can do: alias In(T) = const scope T;
void test(In!int n) {
pragma(msg, typeof(n));
}
?
onlineapp.d(3): Deprecation: storage class `scope` has no effect
in type aliases
const(int) ...oh