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,1fd537a3da8a5021 X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: Re: Array access via pointer? Date: 2000/08/02 Message-ID: #1/1 X-Deja-AN: 653666237 References: <39882AE1.23A81345@home.com> X-Complaints-To: abuse@pacbell.net X-Trace: news.pacbell.net 965234184 24.20.190.201 (Wed, 02 Aug 2000 09:36:24 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Wed, 02 Aug 2000 09:36:24 PDT Newsgroups: comp.lang.ada Date: 2000-08-02T00:00:00+00:00 List-Id: >The size and value of the two types [System.Address, Arr2'access] >are the same; it's just how Ada thinks of them that's >different. Just for my own sanity, I looked at the body for >System.Address_To_Access_Conversions. To_Pointer() and To_Address() >are just Unchecked_Conversions (though dressed up a bit with private Perhaps on the compiler and OS and machine you are using, they happen to be the same. On a compiler I regularly use that is targeted at Intel chips, 'access is 32 bits (assume a single segment, ie flat memory model), but System.Address is 48 bits (segment + offset, necessary in some situations) Clearly you can't use Unchecked_Conversion there, and the compiler's System.Address_To_Access_Conversions takes account of the difference. >Well, no, I wasn't just taking a wild guess. Just making an unjustified assumption. ;)