From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,13ab88b30e0f779d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-28 11:16:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!wn13feed!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Reply-To: "James S. Rogers" From: "James S. Rogers" Newsgroups: comp.lang.ada References: <3e0b2a66_4@news.bluewin.ch> Subject: Re: Efficient Matrix? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <%LmP9.83445$hK4.6767372@bgtnsc05-news.ops.worldnet.att.net> Date: Sat, 28 Dec 2002 19:16:11 GMT NNTP-Posting-Host: 12.86.36.18 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1041102971 12.86.36.18 (Sat, 28 Dec 2002 19:16:11 GMT) NNTP-Posting-Date: Sat, 28 Dec 2002 19:16:11 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:32365 Date: 2002-12-28T19:16:11+00:00 List-Id: Testing the following program on the free Aonix Object Ada (7.2.2) I get the expected results: with Ada.Text_Io; use Ada.Text_Io; procedure Bla is type Unconstrained_Type is array (Positive range <>, Positive range <>) of Boolean; pragma Pack (Unconstrained_Type); subtype Constrained_Type is Unconstrained_Type (1 .. 10000, 1 .. 5000); type Constrained_Type_Ptr is access Constrained_Type; function Component_Bits (Item : constrained_Type) return Integer is begin return Item'Component_Size; end Component_Bits; A : Constrained_Type_Ptr := new Constrained_Type; begin Put_Line (Integer'Image (Constrained_Type'Component_Size)); Put_Line (Integer'Image (Unconstrained_Type'Component_Size)); Put_Line(Integer'Image(A(1,1)'Size)); Put_Line(Integer'Image(Component_Bits(A.all))); Put_Line (Integer'Image (Constrained_Type'Size)); Put_Line (Integer'Image (A.All'Size)); end Bla; Results: 1 1 1 1 50000 50000 Jim Rogers