Jump to content

Copy a string: Difference between revisions

added Arturo
(Undo revision 324485 by Drkameleon (talk))
(added Arturo)
Line 285:
 
</lang>
 
=={{header|Arturo}}==
 
<lang rebol>a: "Hello"
b: a ; reference the same string
 
; changing one string in-place
; will change both strings
 
'b ++ "World"
print b
print a
 
c: "Hello"
d: new c ; make a copy of the older string
 
; changing one string in-place
; will change only the string in question
 
'd ++ "World"
print d
print c</lang>
 
{{out}}
 
<pre>HelloWorld
HelloWorld
HelloWorld
Hello</pre>
 
=={{header|AutoHotkey}}==
1,532

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.