comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Zero_Fill pragma
Date: Tue, 20 Jul 2004 22:15:12 +0000 (UTC)
Date: 2004-07-20T22:15:12+00:00	[thread overview]
Message-ID: <cdk5hg$r55$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: opsbgc51fxp4pfvb@bram-2

Nick Roberts <nick.roberts@acm.org> wrote:
: It is important that the 17 bits not defined by the above
: representation clause are initialised to 0 in objects of this
: type. It would be truly yukky to have to declare another 17
: dummy booleans to achieve this effect. It would surely be much
: preferable to be able to just declare:
: 
:    pragma Zero_Fill(Flags_32);

Hm. Provided the "default status" of unused bits is 0?

How many (non-limited) objects of type Flags_32 would you need?
(so that an explicit initialisation function for a per-process (?)
object is not acceptable)?


(There has once been a suggestion to have a rep clause

  for X use all
   record
   ...
   end record;

or similar, I don't remember exactly.)




  parent reply	other threads:[~2004-07-20 22:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-20 16:22 Zero_Fill pragma Nick Roberts
2004-07-20 17:37 ` Jean-Pierre Rosen
2004-07-20 20:14   ` Nick Roberts
2004-07-20 21:06     ` Jacob Sparre Andersen
2004-07-20 22:15     ` Georg Bauhaus [this message]
2004-07-21  7:21     ` Jean-Pierre Rosen
2004-07-21  9:00     ` Martin Dowie
2004-07-20 21:57 ` Frank
  -- strict thread matches above, loose matches on Subject: below --
2004-07-20 17:13 Lionel.DRAGHI
2004-07-21 12:27 ` Marin David Condic
2004-07-22  9:02   ` Dale Stanbrough
2004-07-21  9:24 Lionel.DRAGHI
2004-07-21 12:59 Lionel.DRAGHI
2004-07-21 21:54 ` Marin David Condic
replies disabled

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