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=0.1 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b82917c628cc6fdf X-Google-Attributes: gid103376,public From: Jeff Carter Subject: Re: Ada 83 Pointers question Date: 1999/01/21 Message-ID: <36A741BA.E500BC6D@spam.innocon.com>#1/1 X-Deja-AN: 435241212 Content-Transfer-Encoding: 7bit References: <36A658CA.97438B6@cacd.rockwell.com> Content-Type: text/plain; charset=us-ascii Organization: Innovative Concepts, Inc. Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-01-21T00:00:00+00:00 List-Id: "Lowe Anthony A" asked about using Unchecked_Conversion to obtain an access value to a component of a record that is a component of an array. It is true that an Ada-83 access value cannot refer to anything except the result of "new" under normal circumstances. However, unchecked features of the language explicitly bypass the normal checks of the language and let you do things that might be dangerous, including this. It is perfectly legal Ada 83 to instantiate Unchecked_Conversion to convert from System.Address to an access type. If the result designates the value you want it to, then this should work fine for you. However, such an approach is entirely compiler dependent. This may not bother you, since you are maintaining the compiler. I cannot tell what is causing your constant array declaration to fail to elaborate without more specific information. The use of Unchecked_Conversion does not sound as if it is causing this, however. -- Jeff Carter E-mail: carter commercial-at innocon [period | full stop] com "We call your door-opening request a silly thing." Monty Python & the Holy Grail