main module ARCONST use TEXTIO //%set use_routine_names = true declare XRANGE is 1..2 YRANGE is 1..4 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..4] : 3), [2] : Y ( [1..2] : 20, [3..4] : 3)) tty_line ("dynamic grid assigned from inline constructor") out_grid( GRID ) endmodule