Deepcopy: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring the hard way, phix/basics) |
Drkameleon (talk | contribs) (Added Arturo implementation) |
||
Line 56: | Line 56: | ||
<pre>deepcopy |
<pre>deepcopy |
||
deepcopy</pre> |
deepcopy</pre> |
||
=={{header|Arturo}}== |
|||
<lang rebol>x: #[ |
|||
name: "John" |
|||
surname: "Doe" |
|||
age: 34 |
|||
hobbies: [ |
|||
"Cycling", |
|||
"History", |
|||
"Programming", |
|||
"Languages", |
|||
"Psychology", |
|||
"Buddhism" |
|||
] |
|||
sayHello: function [][ |
|||
print "Hello there!" |
|||
] |
|||
] |
|||
print ["Name of first person:" x\name] |
|||
y: new x |
|||
y\name: "Jane" |
|||
print ["Name of first person:" x\name] |
|||
print ["Name of second person:" y\name]</lang> |
|||
{{out}} |
|||
<pre>Name of first person: John |
|||
Name of first person: John |
|||
Name of second person: Jane</pre> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |