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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7877c32d98afb317,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-08 15:16:36 PST Newsgroups: comp.lang.ada Path: swrinde!howland.reston.ans.net!news.sprintlink.net!uunet!news-in1.UU.NET!fsi-ssd!randyb From: randyb@ssd.fsi.com (Randy Binnie) Subject: Qu: 3D unconstrained arrays Sender: news@dev1.ssd.fsi.com Message-ID: Date: Wed, 8 Feb 1995 22:57:16 GMT Organization: FlightSafety-SSD, Tulsa, OK, USA Followup-To: comp.lang.ada Date: 1995-02-08T22:57:16+00:00 List-Id: Hi, Assuming this news group allows non political postings, I have an Ada implementation question??? How can one create a 3 dimensional unconstrained array made up of a one dimensional unconstrained array and a two dimensional unconstrained array. Ideally I would like to do the following, but it is not allowed because the type ARRAY_2D_TYPE is unconstrained. type ARRAY_2D_TYPE is array ( range <>, range <>) of DATA_TYPE; type ARRAY_3D_TYPE is array ( range <>) of ARRAY_2D_TYPE; I could do it by creating access pointers to the 2-D array type such as type ARRAY_2D_TYPE is array ( range <>, range <>) of DATA_TYPE; type ACCESS_2D_TYPE is access ARRAY_2D_TYPE; type ARRAY_3D_TYPE is array ( range <>) of ACCESS_2D_TYPE; but I would prefer a cleaner solution using a single monolithic 3 dimensional data structure. So my question is can it be done, if so a brief explaination would be appreciated. This is for an Ada '83 compiler. Thanks for any feedback you may have. -- ----------------------------------------------------- Randy Binnie FlightSafety International Broken Arrow, Oklahoma 74012 randyb@ssd.fsi.com 918-251-0500 ext. 464 -----------------------------------------------------