Copy a string: Difference between revisions

Line 2,294:
<lang toka>" hello" is-data a
a string.clone is-data b</lang>
 
=={{header|Transd}}==
<lang scheme>#lang transd
 
MainModule : {
_start: (λ
(with s "Hello!" s1 "" s2 ""
(= s1 s) // duplication of 's' content
(rebind s2 s) // another reference to 's'
(= s "Good bye!")
(lout s)
(lout s1)
(lout s2)
)
)
}</lang>{{out}}
<pre>
Good bye!
Hello!
Good bye!
</pre>
 
=={{header|Trith}}==
111

edits