* Re: Help with Text_IO
@ 1996-04-22 0:00 Steve O'Neill
0 siblings, 0 replies; only message in thread
From: Steve O'Neill @ 1996-04-22 0:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-04-22 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-22 0:00 Help with Text_IO Steve O'Neill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox