Multiple distinct objects: Difference between revisions

Content added Content deleted
(Modula-3)
Line 168: Line 168:


=={{header|Modula-3}}==
=={{header|Modula-3}}==
Similar to the Ada version above:
Similar to the [[Ada]] version above:
<lang modula3>VAR a: ARRAY OF T</lang>
<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.
This creates an open array (an array who's size is not known until runtime) of distinct elements of type T.