Anonymous user
Copy a string: Difference between revisions
→{{header|D}}
Line 111:
string src = "string";
// copy contents:
auto dest = src.dup;
// copy reference with copy-on-write:
auto dest2 = src;
=={{header|Erlang}}==
|
Line 111:
string src = "string";
// copy contents:
auto dest = src.dup;
// copy reference with copy-on-write:
auto dest2 = src;
=={{header|Erlang}}==
|