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 autolearn=ham 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-16 00:11:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Computer Language Shootout Date: Wed, 16 Jul 2003 07:11:47 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <1ec946d1.0307150715.4ba69f85@posting.google.com> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1058339507 20977 129.241.83.78 (16 Jul 2003 07:11:47 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 16 Jul 2003 07:11:47 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:40329 Date: 2003-07-16T07:11:47+00:00 List-Id: Matthew Heaney wrote: > > It's not necessary to pass the object Standard_Input explicitly to > End_Of_Line and Get_Line, because those operations are overloaded to > read from standard input by default. End_Of_File you mean, yes I agree. > You can also generate better code by declaring the Sum as Integer'Base > instead of Integer; this turns off constraint checks. I see. > You could also have used Integer_Text_IO.Get to read the value from > the string buffer, instead of using Integer'Value. This would allow > you to read multiple values from a single line (assuming that was > required in this program). Ah yes of course. -- Ada95 is good for you. http://www.crystalcode.com/codemage/MainMenu/Coding/Ada/IntroducingAda.php