comp.lang.ada
 help / color / mirror / Atom feed
* Portability questions
@ 2000-04-24  0:00 Wes Groleau
  2000-04-25  0:00 ` Robert A Duff
  0 siblings, 1 reply; 4+ messages in thread
From: Wes Groleau @ 2000-04-24  0:00 UTC (permalink / raw)



An annotation in the AARM points out that initializations
are not suppressed by address clauses.

1. Is there any place in the official RM that says that?
   (I have used the argument "it says over here that this
   happens.  It doesn't say there are any exceptions.")

2. How does this apply or not apply to initializations
   that are NOT required by the language?  For example,

   type Byte is range 0 .. 255;
   for Byte'Size use 8;

   type Buffer is array (Positive range <>) of Byte;
   pragma Pack (Buffer);

   B : Buffer (1..Length_Of_Message);
   for B'Address use Address_Of_Message;

   -- compiler A fills the space of any declared buffer with
   -- zeroes.  The language does not require this.  How does
   -- erasing the received message fit with the Ada 95 rules?

-- 
Wes Groleau
http://freepages.genealogy.rootsweb.com/~wgroleau




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-04-25  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-24  0:00 Portability questions Wes Groleau
2000-04-25  0:00 ` Robert A Duff
2000-04-25  0:00   ` Robert Dewar
2000-04-25  0:00     ` Robert A Duff

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