comp.lang.ada
 help / color / mirror / Atom feed
From: Tom Moran <tmoran@bix.com>
Subject: Re: aliased & packed?
Date: 1997/05/11
Date: 1997-05-11T00:00:00+00:00	[thread overview]
Message-ID: <3376B2F0.7CE4@bix.com> (raw)
In-Reply-To: dewar.863401335@merv


> 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?




  reply	other threads:[~1997-05-11  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-11  0:00 aliased & packed? tmoran
1997-05-11  0:00 ` Robert Dewar
1997-05-11  0:00   ` Tom Moran [this message]
1997-05-12  0:00     ` Robert Dewar
1997-05-12  0:00       ` Robert A Duff
     [not found]         ` <1997May13.065907.1@eisner>
1997-05-13  0:00           ` Robert A Duff
1997-05-13  0:00             ` Larry Kilgallen
1997-05-14  0:00             ` Richard Kenner
1997-05-13  0:00           ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1997-05-09  0:00 Tom Moran
1997-05-09  0:00 ` Stephen Leake
1997-05-09  0:00   ` Tom Moran
1997-05-10  0:00 ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox