comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Initialized global data
Date: 1998/05/08
Date: 1998-05-08T00:00:00+00:00	[thread overview]
Message-ID: <x7vhg30zu85.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 199805061414.QAA14832@basement.replay.com


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!

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 ..)




  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 Anonymous
1998-05-08  0:00   ` Simon Wright [this message]
1998-05-08  0:00     ` Tucker Taft
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-06  0:00 ` Tucker Taft
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