From: "James S. Rogers" <jimmaureenrogers@worldnet.att.net>
Subject: Re: Efficient Matrix?
Date: Sat, 28 Dec 2002 19:16:11 GMT
Date: 2002-12-28T19:16:11+00:00 [thread overview]
Message-ID: <%LmP9.83445$hK4.6767372@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: slrnb0rn9c.7cr.adi@drcomp.erfurt.thur.de
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
next prev parent reply other threads:[~2002-12-28 19:16 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3e0b2a66_4@news.bluewin.ch>
2002-12-26 22:09 ` Efficient Matrix? Adrian Knoth
2002-12-27 0:23 ` Alvery Grazebrook
2002-12-27 9:53 ` Adrian Knoth
2002-12-27 16:58 ` Robert A Duff
2002-12-28 1:44 ` Nick Roberts
2002-12-28 13:00 ` Adrian Knoth
2002-12-28 15:21 ` Bill Findlay
2002-12-28 15:48 ` Adrian Knoth
2002-12-28 23:26 ` Adrian Knoth
2002-12-28 16:07 ` Robert A Duff
2002-12-28 17:25 ` Bill Findlay
2002-12-28 17:35 ` Bill Findlay
2002-12-28 20:51 ` Robert A Duff
2002-12-28 15:58 ` Robert A Duff
2002-12-28 17:19 ` Adrian Knoth
2002-12-28 19:16 ` James S. Rogers [this message]
2002-12-28 20:45 ` Robert A Duff
2002-12-28 22:07 ` Adrian Knoth
2002-12-28 23:42 ` Robert A Duff
2002-12-27 12:25 ` Gautier
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox