comp.lang.ada
 help / color / mirror / Atom feed
From: je@bton.ac.uk (John English)
Subject: Re: simple problem?
Date: 1996/05/10
Date: 1996-05-10T00:00:00+00:00	[thread overview]
Message-ID: <Dr6tqL.217@bton.ac.uk> (raw)
In-Reply-To: Pine.SGI.3.91.960509195810.8410A-100000@sgi17.york.ac.uk


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; without knowing how
 big it is you can use Sequential_IO with it.  Either use a constrained
 string (e.g. String(1..80) or some such) or use Text_IO.Put_Line (i.e.
 write a text file rather than a sequential file).

-- 
----------------------------------------------------------------------------
John English <je@brighton.ac.uk>, Dept. of Computing, University of Brighton
  "Disks are divided into sex and tractors..."
----------------------------------------------------------------------------




  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 English [this message]
1996-05-10  0:00   ` Robert A Duff
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
1996-05-10  0:00 ` John Herro
replies disabled

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