comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: simple problem?
Date: 1996/05/10
Date: 1996-05-10T00:00:00+00:00	[thread overview]
Message-ID: <Dr7I7o.DwK@world.std.com> (raw)
In-Reply-To: Dr6tqL.217@bton.ac.uk


In article <Dr6tqL.217@bton.ac.uk>, John English <je@bton.ac.uk> wrote:
>Frank Cheung (fktc101@york.ac.uk) wrote:
>: When I try to compile the code below, I get the following error:
>: "/usr/Ada/lib/sequential_i.A", line 67: error: 
>: generic formal private type element_type has unconstrained 
>
>:    package TEXT_IO is new SEQUENTIAL_IO(STRING);
> The problem is that String is an unconstrained type; ...

Sequential_IO allows unconstrained arrays.  Direct_IO does not.

Other posters are correct that you probably want to be using the
predefined Text_IO package, and certainly declaring your own thing
called Text_IO, different from the predefined version, is bad form.

- Bob




  reply	other threads:[~1996-05-10  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-09  0:00 simple problem? Frank Cheung
1996-05-10  0:00 ` John Herro
1996-05-10  0:00 ` John English
1996-05-10  0:00   ` Robert A Duff [this message]
1996-05-13  0:00     ` John English
1996-05-13  0:00       ` Robert A Duff
1996-05-14  0:00       ` Keith Thompson
1996-05-10  0:00 ` Robert I. Eachus
1996-05-10  0:00   ` Kevin D. Heatwole
replies disabled

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