comp.lang.ada
 help / color / mirror / Atom feed
From: "Daniel Sch�le" <YADaniel@gmx.de>
Subject: matrix
Date: Tue, 23 Sep 2003 14:05:33 +0200
Date: 2003-09-23T14:05:33+02:00	[thread overview]
Message-ID: <bkpd8v$evf$1@news.rz.uni-karlsruhe.de> (raw)

Hi all

type matrix is array(integer range <>, integer range <>) of integer;
..
m: matrix(1..10, 1..5);
..
for i in m'first..m'last loop                -- 1 to 10
    for j in m(i)'first .. m(i)'last loop    -- doesnt work
        put(m(i, j)'image);
    end loop;
end loop;


what is the proper way to iterate through the matrix?

thanks for answears

--
Daniel





             reply	other threads:[~2003-09-23 12:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-23 12:05 Daniel Sch�le [this message]
2003-09-23 12:17 ` matrix Lutz Donnerhacke
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox