Compound data type: Difference between revisions

(→‎{{header|Phix}}: added class-based alternative)
Line 1,658:
 
=={{header|Phix}}==
===traditional sequenceuser defined type===
The sequence is a natural compound data type. The following would be the same without the type point and declaring p as a sequence, apart from the run-time error. There would be no difficulty defining point to have a string and two atoms.
<lang Phix>enum x,y
Line 1,683:
Press Enter...
</pre>
 
===classes===
{{libheader|Phix/Class}}
7,795

edits