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, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3d9e8b4af1a21f1e X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 18 Dec 2007 08:01:50 -0600 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: newline in a simple program Date: Tue, 18 Dec 2007 14:13:51 +0000 Reply-To: brian@shapes.demon.co.uk Message-ID: <17lfm3d9fne832o819t3npcafdg5hjjm5f@4ax.com> References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 81.158.99.249 X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-8Oc3Oe/cN8SOmf++1BQgL5dqzInz64FNXtNMylaWhYpwAqUal0CfQW9LyCYx5LE8eKUA9ngva5qbTH6!FQEvFktgXNAjD0EANdJVEmdYoVIBasSoVZuUJRYq7H9jQS57/4c0p0Na9fmFRxHJqXG2CbwDjWAr!9rU= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.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.3.36 Xref: g2news1.google.com comp.lang.ada:18985 Date: 2007-12-18T14:13:51+00:00 List-Id: On Tue, 18 Dec 2007 12:28:28 GMT, Paul wrote: >Hi, given the following two simple programs > >The c program does not print a new-line, but the ada program does. > >Is there any way to make the ada program not print a new-line? >And is this behavior part of the Ada standard or is it just part of gnat? Neither; it's part of the ada.text_io library. It should be possible to find documentation on ada.text_io, or read ada.text_io.ads itself for more information. If that has no way to accomplish what you need, then you simply need a different library; and that's where Dmitry's excellent answer comes in. - Brian