Compound data type: Difference between revisions
→traditional sequence
(→{{header|Phix}}: added class-based alternative) |
|||
Line 1,658:
=={{header|Phix}}==
===traditional
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}}
|