[Issue 23941] [DIP1000] Overloading by scope should be allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 24 16:05:28 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23941
--- Comment #6 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
I don't think there is any disagreement at all. Thank you for the explanation,
that's very interesting.
FWIW, I tried using scope overloads to solve the "function which only sometimes
needs to make a copy" problem. The scope overload needs to call .dup, but the
non-scope overload never needs to call .dup, because lack of scope implies
infinite lifetime.
--
More information about the Digitalmars-d-bugs
mailing list