comp.lang.ada
 help / color / mirror / Atom feed
From: Craig Carey <research@ijs.co.nz>
Subject: Re: Representing data differently
Date: Fri, 14 Feb 2003 06:21:38 +1300
Date: 2003-02-14T06:21:38+13:00	[thread overview]
Message-ID: <pajn4vg95uchkbdbme66lohf4cdbk6llpb@4ax.com> (raw)
In-Reply-To: slrnb4f7qr.ms.Colin_Paul_Gloster@camac.dcu.ie

On 10 Feb 2003 12:47:23 GMT, Colin_Paul_Gloster@ACM.org (Colin Paul
Gloster) wrote:
...
>     for X'Address use Y'Address;
>     pragma Import (Y);
>           --  :Stops default initialising of pointers (not in GNAT 3.14)
...
>Why is the convention missing from this import statement?


That is quoted text, and the quote could have been corrected. Thus I
object to the use of the present tense in the question. It does not seem
to be an interesting question. The solution I showed is not very nice,
with how the "-gnatR" option to show byte offsets might be done, with
an a one or more edits and compiles until Ada union struct type is
defined properly.

The rule on no default initializations is defined with this text:

Ada Reference Manual : B.1 Interfacing Pragmas

38.  Notwithstanding what this International Standard says elsewhere,
the elaboration of a declaration denoted by the local_name of a pragma
Import does not create the entity. Such an elaboration has no other
effect than to allow the defining name to denote the external entity.

38.a.  Ramification: This implies that default initializations are
skipped. (Explicit initializations are illegal.) For example, an
imported access object is not initialized to null.

  http://www.adaic.org/standards/95aarm/html/AA-B-1.html





  reply	other threads:[~2003-02-13 17:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 14:15 Representing data differently Daniel Allex
2003-02-07 18:07 ` tmoran
2003-02-09  4:39   ` Craig Carey
2003-02-10 12:47     ` Colin Paul Gloster
2003-02-13 17:21       ` Craig Carey [this message]
2003-02-08  0:24 ` Wojtek Narczynski
2003-02-12 18:52 ` Martin Krischik
2003-02-22 19:09   ` Robert A Duff
2003-02-23 13:06     ` Martin Krischik
2003-02-23 21:09 ` Craig Carey
2003-02-23 21:59   ` tmoran
replies disabled

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