Compound data type: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) |
Drkameleon (talk | contribs) (Obsolete example) |
||
Line 324: | Line 324: | ||
<pre>[x:10 y:20]</pre> |
<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}}== |
=={{header|AutoHotkey}}== |