[M3devel] small array in modula-3?

Tony Hosking hosking at cs.purdue.edu
Tue Nov 13 17:57:29 CET 2007


On Nov 13, 2007, at 9:31 AM, Henning Thielemann wrote:

>
> On Mon, 12 Nov 2007, Jay wrote:
>
>> What is the right way to have a variably sized but always small  
>> array in
>> Modula-3?My array will only ever have 1 or 2 elements.I'd like to  
>> always
>> allocate room for 2 elements, and have there be a size.
>
> How about SUBARRAY of a two-element array?

Yes indeed!




More information about the M3devel mailing list