Compound data type: Difference between revisions

Content added Content deleted
(add scala)
(Add Seed7 example)
Line 968:
(y point-y))</lang>
 
=={{header|SIMPOLSeed7}}==
<lang seed7>const type: Point is new struct
var integer: x is 0;
var integer: y is 0;
end struct;</lang>
 
=={{header|SIMPOL}}==
The <code>point</code> type is pre-defined in [SIMPOL], so we will call this mypoint.