Copy a string: Difference between revisions

Latitude language added
m (→‎{{header|Python}}: clarify discussion of impact on object references)
(Latitude language added)
Line 1,157:
'\r'
#y //it was grey.</lang>
 
=={{header|Latitude}}==
Strings are immutable in Latitude, so it is seldom necessary to explicitly copy one. However, a copy can be distinguished from the original using <code>===</code>
<lang latitude>a := "Hello".
b := a.
c := a clone.
println: a == b. ; True
println: a == c. ; True
println: a === b. ; True
println: a === c. ; False</lang>
 
=={{header|LC3 Assembly}}==
37

edits