From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9b39dbd8effaa623 X-Google-Attributes: gid103376,public From: je@bton.ac.uk (John English) Subject: Re: simple problem? Date: 1996/05/10 Message-ID: #1/1 X-Deja-AN: 154174640 references: organization: University of Brighton, UK newsgroups: comp.lang.ada Date: 1996-05-10T00:00:00+00:00 List-Id: 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 , Dept. of Computing, University of Brighton "Disks are divided into sex and tractors..." ----------------------------------------------------------------------------