Compound data type: Difference between revisions

Content added Content deleted
Line 379: Line 379:
=={{header|ATS}}==
=={{header|ATS}}==


There are numerous ways to do this. The simplest is to use an unallocated tuple type:
There are numerous ways to do this. The simplest is to use an "unboxed" tuple type:


<lang ATS>typedef point (t : t@ype+) = @(t, t)
<lang ATS>typedef point (t : t@ype+) = @(t, t)