main module ARCONST use TEXTIO //%set use_routine_names = true declare XRANGE is 1..5 YRANGE is 1..6 Y is array [YRANGE] of integer XY is array [XRANGE] of Y GRID : XY enddeclare procedure out_grid ( G: in ref XY ) for XIndex in XRANGE do for YIndex in YRANGE do out_integer (TTY, G [XIndex, YIndex], " ") endfor out_record (TTY) endfor endprocedure GRID := XY ( [1] : Y ( [1..1] : 10, [2..6] : 3), [2] : Y ( [1..2] : 20, [3..6] : 3), [3] : Y ( [1..3] : 30, [4..6] : 3), [4] : Y ( [1..4] : 40, [5..6] : 3), [5] : Y ( [1..5] : 50, [6..6] : 3) ) tty_line ("dynamic grid assigned from inline constructor") out_grid( GRID ) endmodule