-- Collection of code snippets by Arne Vajhøj 
-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
with Ada.Text_IO, Ada.Integer_Text_IO;

use Ada.Text_IO, Ada.Integer_Text_IO;

procedure ix1 is

subtype myix is integer range 1..2;
type myarr is array(myix) of integer;

a : myarr;
i : myix;

begin
    i := 3;
    a(i) := 123;
    Put(A(I));
    New_Line;
end ix1; 
