Querying parameter passing semantics for `auto ref const` variables
Nordlöw via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jan 15 06:35:27 PST 2017
On Sunday, 15 January 2017 at 14:33:25 UTC, Nordlöw wrote:
> Is there a way to query at compile-time whether a call to
Further, overloading such as
struct S { int x, y; }
static f(in S s) {}
static f(const ref S s) {}
f(S.init);
S s;
f(s);
fails as
declaration f is already defined
More information about the Digitalmars-d-learn
mailing list