Compound data type: Difference between revisions

Obsolete example
(Obsolete example)
Line 324:
 
<pre>[x:10 y:20]</pre>
 
===Using a class===
 
<lang arturo>Point #{
x 0
y 0
 
init {
x &0
y &1
}
}
 
point $(new ~Point 10 20)
 
print point</lang>
 
{{out}}
 
<pre>#{ init <function: 0x1077534A0>, x 10, y 20 }</pre>
 
=={{header|AutoHotkey}}==
1,532

edits