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

Vladimir Panteleev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dlang-bugzilla@thecybershad
                   |                            |ow.net
         Resolution|---                         |INVALID

--- Comment #2 from Vladimir Panteleev <[email protected]> ---
In D2, use .idup to create a copy of an immutable string.

The result of .dup will implicitly convert to a string in some circumstances as
a convenience feature to ease migration from D1. It works because the compiler
knows that although the result of .dup is mutable, it is also unique. However,
this inference is limited by design.

--

Reply via email to