From: B0966864 <B0966864@boeing.com>
Subject: Re: pragma Import with 'Address clause
Date: Wed, 19 Mar 2003 15:17:05 GMT
Date: 2003-03-19T15:17:05+00:00 [thread overview]
Message-ID: <3E7889F1.368333E4@boeing.com> (raw)
In-Reply-To: slrnb7guml.nt.lutz@taranis.iks-jena.de
The Pragma Import should not be needed. I have used the overlays and do
not have the Import statements for any of them in this case. You can
also use the syntax of
for b use at a'Address
I have seen both used in ada95
Jerico
Lutz Donnerhacke wrote:
>
> A common technique to reinterpret data is:
> a : AT;
> [...]
> b : BT;
> for b'Address use a'Address;
> pragma Import(Ada, b);
>
> Is the "pragma Import" really necessary? Of course, the ARM says, that
> elaboration and definition of the imported object is externally defined. So
> they are omitted from the Ada code itself.
>
> Assume BT is a record without any default expressions. Does this mean, the
> pragma can be omitted from the source code?
>
> Background: Spark prohibits the use of Pragma Import on objects.
>
next prev parent reply other threads:[~2003-03-19 15:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-19 14:12 pragma Import with 'Address clause Lutz Donnerhacke
2003-03-19 15:17 ` B0966864 [this message]
2003-03-19 16:51 ` Stephen Leake
2003-03-19 17:10 ` Lutz Donnerhacke
2003-03-19 22:29 ` Rod Chapman
2003-03-21 11:13 ` Lutz Donnerhacke
2003-03-19 18:07 ` Rod Chapman
2003-03-21 11:31 ` Lutz Donnerhacke
-- strict thread matches above, loose matches on Subject: below --
2003-03-19 16:59 Beard, Frank Randolph CIV
2003-03-19 21:03 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox