comp.lang.ada
 help / color / mirror / Atom feed
* Boolean array representation question
@ 1997-11-20  0:00 Jerry van Dijk
  1997-11-20  0:00 ` Matthew Heaney
  1997-11-21  0:00 ` John P. Lippiello
  0 siblings, 2 replies; 10+ messages in thread
From: Jerry van Dijk @ 1997-11-20  0:00 UTC (permalink / raw)



When compiling the following program:

   with Ada.Text_IO; use Ada.Text_IO;

   procedure Test_1 is
      type Bit_Array is array (Natural range <>) of Boolean;
      My_Array : Bit_Array (0 .. 4) := (others => False);
   begin
      Put_Line ("The size of Bit_Array is" &
        Integer'Image (My_Array'Size));
   end Test_1;

both GNAT and OA on NT report the size as 40 so I wonder if
this is some kind of magic number and where it is coming from.
Thanks,
Jerry.

--

-- Jerry van Dijk | Leiden, Holland
-- Consultant     | Team Ada
-- Ordina Finance | jdijk@acm.org




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

end of thread, other threads:[~1997-11-24  0:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-20  0:00 Boolean array representation question Jerry van Dijk
1997-11-20  0:00 ` Matthew Heaney
1997-11-21  0:00 ` John P. Lippiello
1997-11-22  0:00   ` Jerry van Dijk
1997-11-22  0:00     ` Robert Dewar
1997-11-22  0:00     ` Matthew Heaney
1997-11-22  0:00       ` Robert Dewar
1997-11-23  0:00       ` Geert Bosch
1997-11-24  0:00         ` Larry Kilgallen
1997-11-24  0:00           ` Robert Dewar

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