Algebraic and implicit conversions

Per Nordlöw per.nordlow at gmail.com
Mon Jan 6 17:08:47 UTC 2020


Is there a reason why

     alias A = Algebraic!(long, string);
     A x;
     x = 42;

doesn't implicitly convert `42` to `long` and stores it in `x`?


More information about the Digitalmars-d-learn mailing list