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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,33ec76ddbb5a5c4a,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!r3g2000vbp.googlegroups.com!not-for-mail From: juanmiuk Newsgroups: comp.lang.ada Subject: How it works get_line function Date: Fri, 8 May 2009 13:50:34 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 87.194.17.89 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1241815834 31947 127.0.0.1 (8 May 2009 20:50:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 8 May 2009 20:50:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r3g2000vbp.googlegroups.com; posting-host=87.194.17.89; posting-account=l6y7nQoAAABlM0ixwraR8Luww92dg7v2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.0.10) Gecko/2009042716 Firefox/3.0.10,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5744 Date: 2009-05-08T13:50:34-07:00 List-Id: Hello All, I tried to worked out how works the function get_line but gave me a error: with Ada.Text_Io; use Ada.Text_Io; procedure Read_String_func is Line : String (1 .. 80); begin Put("Write a string: "); Line := Get_Line; end Read_String_Func; Write a string: adfkjadfk raised CONSTRAINT_ERROR : read_string_func.adb:11 length check failed What I was doing wrong? Thanks in advance Juan Miguel