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 X-Google-Attributes: gid103376,public From: boaz@usa.pipeline.com(Boaz Chow) Subject: Re: Problems in GNAT with get_line Date: 1996/06/08 Message-ID: <4pb8tu$559@news2.h1.usa.pipeline.com>#1/1 X-Deja-AN: 159140579 references: x-pipeuser: boaz x-pipehub: usa.pipeline.com organization: Pipeline USA newsgroups: comp.lang.ada x-pipegcos: (Boaz Chow) Date: 1996-06-08T00:00:00+00:00 List-Id: Try put a SKIP_LINE in front of your GET_LINE. On Jun 04, 1996 14:41:25 in article , 'p135577@proffa.cc.tut.fi (Peteri Matti)' wrote: > > 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 -- ______ Meow \ OO / _/ :(__ =) U \\ http://www.sci.csupomona.edu/~cchow