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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,386228a37afe967f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-18 03:05:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!wanadoo.fr!oleane.net!oleane!nnrp.oleane.net!skymaster!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: Computer Language Shootout Date: Fri, 18 Jul 2003 11:11:01 +0200 Organization: Adalog Message-ID: <7ld8fb.vo5.ln@skymaster> References: <1ec946d1.0307150715.4ba69f85@posting.google.com> <3F149243.80304@attbi.com> <3F15930C.2070907@attbi.com> <198fhv0avvpqc39dq7paiqpf3lntca8v4g@4ax.com> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 1058522464 7994 195.25.228.57 (18 Jul 2003 10:01:04 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 18 Jul 2003 10:01:04 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:40461 Date: 2003-07-18T11:11:01+02:00 List-Id: "Dmitry A. Kazakov" a �crit dans le message news: > ARM states for Get_Line: > > "... Reading stops if the end of the string is met. Reading also stops > if the end of the line is met before meeting the end of the string; in > this case Skip_Line is (in effect) called with a spacing of 1. The > values of characters not assigned are not specified." > > What will happen if a line is exactly of 500 character length? From > the quote above I suppose that Get_Line will boldly go to the next > line. If so, then your program would merge all lines of 500 character > length into one adding the first shorter line, or raise an unexpected > End_Error if there is no one. > No. In this case, the recursive call will return an empty string (Skip_Line is not called), which is harmless and returns the correct value. Note that the recursive call will make the Skip_Line! -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr