[Issue 20728] There is third way to create immutable data
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 11 02:01:22 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20728
Adam D. Ruppe <destructionator at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |destructionator at gmail.com
Resolution|--- |INVALID
--- Comment #1 from Adam D. Ruppe <destructionator at gmail.com> ---
Your sample code doesn't even compile. That's because of this rule.
That page doesn't mention the implicit cast of unique data (such as returned
from a pure function), though that is technically a cast so it is kinda
covered.
But regardless, your example is invalid so I'm closing this. Please make sure
your code actually does what you think it does before opening a bug.
--
More information about the Digitalmars-d-bugs
mailing list