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: bobduff@world.std.com (Robert A Duff) Subject: Re: simple problem? Date: 1996/05/10 Message-ID: #1/1 X-Deja-AN: 154178607 references: organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-05-10T00:00:00+00:00 List-Id: In article , John English 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