comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Best representation for spares
Date: Sat, 15 Feb 2014 14:41:56 -0700
Date: 2014-02-15T14:41:56-07:00	[thread overview]
Message-ID: <ldomv5$6ec$3@dont-email.me> (raw)
In-Reply-To: <8200939f-9bbd-44dd-848c-00c663f37121@googlegroups.com>

On 02/15/2014 01:25 PM, Rego, P. wrote:
>
>     type Zero_Bit is new Boolean;
>     type Zero_Bits is array (Positive range <>) of Zero_Bit;
>     for Zero_Bits'Component_Size use 1;
>
>     type Auxiliary_Interrupt_Status_Type is
>        record
>           Mini_Uart_IRQ : Boolean;
>           SPI_1_IRQ     : Boolean;
>           SPI_2_IRQ     : Boolean;
>           Spare         : Zero_Bits (3 .. 31) := (3 .. 31 => 0);

Zero is not a valid value for the components of Spare, since it's a boolean type.

-- 
Jeff Carter
"In the frozen land of Nador they were forced to
eat Robin's minstrels, and there was much rejoicing."
Monty Python & the Holy Grail
70


  parent reply	other threads:[~2014-02-15 21:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14  1:07 Best representation for spares Rego, P.
2014-02-14  9:19 ` Simon Wright
2014-02-15 16:06   ` Rego, P.
2014-02-15 17:49     ` Jeffrey Carter
2014-02-15 20:21       ` Rego, P.
2014-02-15 19:55     ` Niklas Holsti
2014-02-15 20:25       ` Rego, P.
2014-02-15 21:35         ` Rego, P.
2014-02-16 10:02           ` Niklas Holsti
2014-02-16 13:40             ` Rego, P.
2014-02-16 16:26               ` Rego, P.
2014-02-16 18:50                 ` Niklas Holsti
2014-02-16 16:33               ` Niklas Holsti
2014-02-16 12:10           ` Simon Wright
2014-02-16 13:43             ` Rego, P.
2014-02-16 14:25               ` Robert A Duff
2014-02-16 16:21                 ` Rego, P.
2014-02-15 21:41         ` Jeffrey Carter [this message]
2014-02-15 22:37           ` Rego, P.
2014-02-15 22:41             ` Rego, P.
2014-02-16  0:39             ` Jeffrey Carter
2014-02-16 12:06         ` Simon Wright
2014-02-16 13:45           ` Rego, P.
replies disabled

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