Copy a string: Difference between revisions

(→‎{{header|Seed7}}: ++ smalltalk)
Line 40:
dest:=src
)
 
=={{header|AWK}}==
 
<lang awk>BEGIN {
a = "a string"
b = a
sub(/a/, "X", a) # modify a
print b # b is a copy, not a reference to...
}</lang>
 
=={{header|BASIC}}==