main module ARCONST32 use TEXTIO out_line (TTY, "declare CGRID") declare XRANGE is 1..5 YRANGE is 1..6 Y is array [YRANGE] of 32 bit integer XY is array [XRANGE] of Y CGRID = 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) ) enddeclare out_line (TTY, "declare GRID_ic") declare GRID_ic : XY initially CGRID 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 tty_line ("dynamic grid initialized from constant constructor") out_grid( GRID_ic ) //---------------------------------------------------- endmodule