Anonymous user
Copy a string: Difference between revisions
→{{header|Modula-3}}: ++ metafont
(→{{header|Modula-3}}: ++ metafont) |
|||
Line 312:
str2 = copy str1
</pre>
=={{header|Metafont}}==
Metafont will always copy a string (does not make references).
<lang metafont>string s, a;
s := "hello";
a := s;
s := s & " world";
message s; % writes "hello world"
message a; % writes "hello"
end<lang>
=={{header|Modula-3}}==
|