From: Stephen Leake <Stephen.A.Leake@nasa.gov>
Subject: Re: pragma Import with 'Address clause
Date: 19 Mar 2003 11:51:39 -0500
Date: 2003-03-19T17:05:58+00:00 [thread overview]
Message-ID: <uof47z4dg.fsf@nasa.gov> (raw)
In-Reply-To: slrnb7guml.nt.lutz@taranis.iks-jena.de
Lutz Donnerhacke <lutz@iks-jena.de> writes:
> 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.
I would hope Spark would prohibit the address clause as well! you are
totally defeating the Ada type system!
--
-- Stephe
next prev parent reply other threads:[~2003-03-19 16:51 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
2003-03-19 16:51 ` Stephen Leake [this message]
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