comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: Initialized global data
Date: 1998/05/08
Date: 1998-05-08T00:00:00+00:00	[thread overview]
Message-ID: <EsnKAJ.MFr.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: x7vhg30zu85.fsf@pogner.demon.co.uk


Simon Wright (simon@pogner.demon.co.uk) wrote:

: nobody@REPLAY.COM (Anonymous) writes:
: [...]
: > Or you can use an uninitialized "variable" (that doesn't) at a specified
: > address:
: > 
: > X : T;
: > for X'Address use A; -- Ada 83: "for X use at A;"

: I'm not sure of chapter-and-verse, but I believe that a compiler is
: allowed to initialize X here under some circumstances; which wouldn't
: be what you wanted!

A "pragma Import(Ada, X);" would prevent initialization.

: The specific case where this happened to us was when T happened to be
: a packed array of bits. We were assured by our support that it was OK
: for their compiler to initialize all the bits to 0, I was dubious
: about this! (and I can't seem to recreate the situation in the latest
: release ..)

--
-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA




  reply	other threads:[~1998-05-08  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-05  0:00 Initialized global data Kevin Wells
1998-05-05  0:00 ` A little more data Kevin Wells
1998-05-06  0:00   ` Stephen Leake
1998-05-06  0:00 ` Initialized global data Tucker Taft
1998-05-06  0:00 ` Anonymous
1998-05-08  0:00   ` Simon Wright
1998-05-08  0:00     ` Tucker Taft [this message]
1998-05-09  0:00       ` Simon Wright
1998-05-10  0:00         ` Robert Dewar
1998-05-11  0:00           ` Simon Wright
1998-05-11  0:00             ` Matthew Heaney
1998-05-06  0:00 ` John English
1998-05-09  0:00 ` Niklas Holsti
replies disabled

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