Added copy constructors to "Programming in D"

Meta jared771 at gmail.com
Thu Feb 10 02:11:42 UTC 2022


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


More information about the Digitalmars-d-announce mailing list