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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,81b62fa6e95ab58b X-Google-Attributes: gid103376,public From: Tom Moran Subject: Re: aliased & packed? Date: 1997/05/11 Message-ID: <3376B2F0.7CE4@bix.com>#1/1 X-Deja-AN: 241001831 References: <5l5llv$4e@lotho.delphi.com> Organization: InterNex Information Services 1-800-595-3333 Reply-To: tmoran@bix.com Newsgroups: comp.lang.ada Date: 1997-05-11T00:00:00+00:00 List-Id: > Well, address is very precisely defined in terms of storage units > occupied, so its meaning, though target dependent of course, should > certainly be compiler independent assuming the same data layouts. Which still does not answer my question of whether I can assume that 'address will generate the right thing for an Imported C function, especially when I see that many such C functions are defined in various examples I see as taking 'access rather than 'address parameters. > Obviously you definitely CANNOT expect access to work on a packed array. Does that mean I can't expect Interfaces.C type char_array is array(size_t range <>) of aliased char; pragma Pack(char array); to work? Also, how about the question of 'address or 'access of the array itself rather than a component (eg the first element). Is either or both of 'address or 'access, in Ada 95, supposed to give an Imported function the address of the first data element, rather than the address of a descriptor?