mutable string

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 10 13:38:06 PDT 2016


On 07/10/2016 10:31 PM, Lodovico Giaretta wrote:
> That said, if you want char[] -> string or wchar[] -> wstring you can
> use assumeUnique, which casts a mutable array to an immutable one.

After having ensured that the array is actually unique. That is, there 
must not be any other references to it or into it, or you're going to 
run into undefined behavior.


More information about the Digitalmars-d-learn mailing list