From: Steve O'Neill <smoneill@sanders.lockheed.com>
Subject: Re: Help with Text_IO
Date: 1996/04/22
Date: 1996-04-22T00:00:00+00:00 [thread overview]
Message-ID: <317BC2E3.2DD3@sanders.lockheed.com> (raw)
Robert Gelb wrote:
> I have the following code:
> procedure test is
> type string is array(integer range 1..10) of character;
> type SaType is array(integer range <>) of string;
> StrArray:SaType(1..5);
> begin
> put(StrArray(1));
> end test;
Why declare your own string type?
How about just using a subtype of the predefined string type?
subtype My_String is String(1..10);
and then make arrays of these...
type SaType is array (integer range <>) of My_String;
Then the predefined Ada.Text_IO.Put(StrArray(1)) will work just fine.
--
Steve O'Neill | "No,no,no, don't tug on that!
Sanders, A Lockheed Martin Company | You never know what it might
smoneill@sanders.lockheed.com | be attached to."
(603) 885-8774 fax: (603) 885-4071| Buckaroo Banzai
reply other threads:[~1996-04-22 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox