Compound data type: Difference between revisions

Content added Content deleted
No edit summary
Line 312: Line 312:


=={{header|Arturo}}==
=={{header|Arturo}}==

===Using a dictionary===
<lang arturo>point #{
x 10
y 20
}

print point</lang>

{{out}}

<pre>#{ x 10, y 20 }</pre>

===Using a class===


<lang arturo>Point #{
<lang arturo>Point #{