comp.lang.ada
 help / color / mirror / Atom feed
From: Marius Amado Alves <amado.alves@netcabo.pt>
To: comp.lang.ada@ada-france.org
Subject: Re: unconstrained array type problems
Date: Wed, 21 Jul 2004 16:54:00 +0100
Date: 2004-07-21T16:54:00+01:00	[thread overview]
Message-ID: <mailman.36.1090425254.416.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <40fe8ce1@dnews.tpgi.com.au>

> How can i make them visible to one another? This is so easy to do in
> c++/java.

This is extremely easy in Ada with the proper design, namely with these 
two entities:

    type Matrix is array (Positive range <>, Positive range <>) of Real;
    function Read_File (Name : String) return Matrix;

Then read all the matrices you want in the same place:

    Matrix_1 : Matrix := Read_Matrix ("One");
    Matrix_2 : Matrix := Read_Matrix ("Two");
    ...






  reply	other threads:[~2004-07-21 15:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-21 15:04 unconstrained array type problems zork
2004-07-21 15:09 ` Ludovic Brenta
2004-07-21 15:33   ` zork
2004-07-21 15:54     ` Marius Amado Alves [this message]
2004-07-21 16:24       ` Ludovic Brenta
2004-07-21 17:33         ` Georg Bauhaus
2004-07-21 17:35         ` zork
2004-07-21 18:30           ` tmoran
2004-07-21 23:11             ` zork
2004-07-22  7:57     ` Martin Krischik
replies disabled

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