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.3 required=5.0 tests=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: Matthew Heaney Subject: Re: Ada 83 Pointers question Date: 1999/01/21 Message-ID: #1/1 X-Deja-AN: 435287699 Sender: matt@mheaney.ni.net References: <36A658CA.97438B6@cacd.rockwell.com> <36A741BA.E500BC6D@spam.innocon.com> NNTP-Posting-Date: Thu, 21 Jan 1999 09:25:56 PDT Newsgroups: comp.lang.ada Date: 1999-01-21T00:00:00+00:00 List-Id: Jeff Carter writes: > It is perfectly legal Ada 83 to instantiate Unchecked_Conversion to > convert from System.Address to an access type. That's being _very_ generous... > 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. The issue is whether or not pointers to unconstrained arrays use a dope vector or not, and whether the pointer points to the dope vector, or to the array itself. In general, if you convert from System.Address to an access type, you better know what you are doing!