[Issue 23523] Allow User-Defined Implicit Conversions for const/immutable containers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 30 18:21:11 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23523

--- Comment #1 from John Hall <john.michael.hall at gmail.com> ---
In the past the argument from Walter against something like opImplicitCast has
always been that users would get confused about random things happening if they
had freedom to do any implicit cast they could think of.

The solution to this would be only to allow the implicit conversions discussed
above. So instead of some general opImplicitCast it might be better described
as opImplicitConstCast.

--


More information about the Digitalmars-d-bugs mailing list