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,9f5d75555d60d530,start X-Google-Attributes: gid103376,public From: p135577@proffa.cc.tut.fi (Peteri Matti) Subject: Problems in GNAT with get_line Date: 1996/06/04 Message-ID: #1/1 X-Deja-AN: 158574492 distribution: worldwide organization: Tampere University of Technology, Computing Centre newsgroups: comp.lang.ada Date: 1996-06-04T00:00:00+00:00 List-Id: Hi I've got this little problem that for some reason get_line doesn't stop to wait the user input. So, I use GNAT95, and in my main program I call this subprogram where I make these declarations ansStr :string(1..stringMax); strLgt :integer; and in the body I put something on the screen with put_line and put. After this I want to read a string with a command get_line(ansStr,strLgt); but to my suprise my program doesn't wait for the input and as I have on the next line put(ansStr & "foo"); there's nothing intelligent on ansStr. And I get a "raised constraint error"... And if I use simply get(ansSTr); it stops waitin' for user input and waits and waits and nothing goes on... So where could I go wrong? At the GNAT examples there is an example that uses the same kind on declarations and commands. Thanks in advance - I'm sure it's some stupid little mistake but I haven't been able to detect it myself. Matti ---------------------------------------------------------- Matti Peteri Residence Universitaire Computer Science 4rth year 6 Bis Rue Winston Churchill peteri@linux.utc.fr 60200 Compiegne, France -- ---------------------------------------------------------- Matti Peteri Residence Universitaire Computer Science 4rth year 6 Bis Rue Winston Churchill peteri@linux.utc.fr 60200 Compiegne, France