From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e52f7c34095c85e5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: "zork" Newsgroups: comp.lang.ada References: <87zn5tl7n1.fsf@insalien.org> <40fe8ce1@dnews.tpgi.com.au> <87vfghl456.fsf@insalien.org> Subject: Re: unconstrained array type problems Date: Thu, 22 Jul 2004 03:35:00 +1000 Organization: - X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 220.245.100.34 X-Original-NNTP-Posting-Host: 220.245.100.34 Message-ID: <40fea9b7@dnews.tpgi.com.au> X-Trace: dnews.tpgi.com.au!tpg.com.au 1090431415 220.245.100.34 (22 Jul 2004 03:36:55 +1000) Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.gamma.ru!Gamma.RU!news-peer-west.sprintlink.net!news.sprintlink.net!news-syd!dnews.tpgi.com.au!tpg.com.au!not-for-mail Xref: g2news1.google.com comp.lang.ada:2327 Date: 2004-07-22T03:35:00+10:00 List-Id: "> begin > Get (File, number_rows_1); > Get (File, number_columns_1); > Get (File, number_rows_2); > Get (File, number_columns_2); > > declare > array1: Matrix_Type (1 .. number_rows, 1 .. number_columns); > array2: Matrix_Type (1 .. number_rows, 1 .. number_columns); > begin > -- read in array1 > -- read in array2 > -- multiply array1 by array2 (array multiplication) > end; > end; Thanks, yes that would work if the arrays each had its own data file. But what i find difficult to grasp is that what if the data is contained in one file: ----- row1 column1 elements or array1 row2 column2 elements of array2 .. ----- I need to: --- open (file) read in dimensions of array1 create the array1 fill the array1 read in dimensions of array2 create the array2 fill the array2 close (file) allow the arrays to interact with one another --- I cannot see a way around this. thanks zork