Copy a string: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
|||
Line 2,294: | Line 2,294: | ||
<lang toka>" hello" is-data a |
<lang toka>" hello" is-data a |
||
a string.clone is-data b</lang> |
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}}== |
=={{header|Trith}}== |