Anonymous user
Multiple distinct objects: Difference between revisions
Modula-3
m (No longer has less than 5 examples) |
(Modula-3) |
||
Line 166:
}
</lang>
=={{header|Modula-3}}==
Similar to the Ada version above:
<lang modula3>VAR a: ARRAY OF T</lang>
This creates an open array (an array who's size is not known until runtime) of distinct elements of type T.
Modula-3 does not define what values the elements of A have, but it does guarantee that they will be of type T.
=={{header|OCaml}}==
|