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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: What's the cause of extra new line with Text_IO when program exit Date: Sat, 17 Aug 2013 14:54:45 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 17 Aug 2013 21:54:47 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="da68e1c0dc00d4aa5d0283c494e3a17a"; logging-data="11896"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RFtwvCjxDO94HXyV6L5kbgx6SoWxPVQY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:M/8bzLyaP/MCA5/AQkJ4MXAOKTY= X-Original-Bytes: 2171 Xref: number.nntp.dca.giganews.com comp.lang.ada:183058 Date: 2013-08-17T14:54:45-07:00 List-Id: On 08/17/2013 10:54 AM, Dennis Lee Bieber wrote: > On Thu, 15 Aug 2013 20:17:46 -0700, Jeffrey Carter > declaimed the following: > >> While it is not defined by the language what happens to a File_Type when the >> program ends [ARM A.7(6)], it does require that File_Type have finalization [ARM >> A.10.1(86)]. A logical thing for this finalization to do is to make sure that >> the last line is terminated, and it appears that your implementation does this. >> > Heck, isn't there some mention of also having an EOF marker written? When you close a file, yes. It may not make sense to close standard output. -- Jeff Carter "This scene's supposed to be in a saloon, but the censor cut it out. It'll play just as well this way." [in a soda fountain] Never Give a Sucker an Even Break 113