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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,386228a37afe967f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-17 09:29:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!wn14feed!wn13feed!wn12feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.gbronline.com!news.gbronline.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 17 Jul 2003 11:29:41 -0500 Date: Thu, 17 Jul 2003 11:29:51 -0500 From: Wesley Groleau Reply-To: wesgroleau@despammed.com Organization: Ain't no organization here! User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en, es-mx, pt-br, fr-ca MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Computer Language Shootout References: <1ec946d1.0307150715.4ba69f85@posting.google.com> <3F149243.80304@attbi.com> <3F15930C.2070907@attbi.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 216.117.18.35 X-Trace: sv3-ViwQfzd+qsLSxsG8X1KcKtRkvuXt45Wb0Qk5Guw/ZZdB5P9+d3gPdV39nHUi2fxLL08E/LCdhqe2e9K!v9RimfCXBx28yVa8FdohhuQ6D+qgU2sjoMbkw2cKfUm3lcBPzn2Pi8jaMBg5J2MJ0tAGdvG2auui!sxS0 X-Complaints-To: abuse@gbronline.com X-DMCA-Complaints-To: abuse@gbronline.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:40409 Date: 2003-07-17T11:29:51-05:00 List-Id: Preben Randhol wrote: > I sometimes use this procedure: > > procedure Get_Whole_Line > (File : in File_Type; > Item : out String; > Last : out Natural) > is I often use a function, which reads from the file into a temporary, and then returns Temp (1 .. Last) The difficulty is knowing how big to make the temporary. The benefit is that the function can be used in a declaration, relieving the client from dealing with that difficulty.