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-Thread: 103376,3d9e8b4af1a21f1e,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps90.POSTED!53ab2750!not-for-mail From: Paul User-Agent: Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.7.13) Gecko/20070309 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: newline in a simple program Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 18 Dec 2007 12:28:28 GMT NNTP-Posting-Host: 199.126.207.220 X-Trace: edtnps90 1197980908 199.126.207.220 (Tue, 18 Dec 2007 05:28:28 MST) NNTP-Posting-Date: Tue, 18 Dec 2007 05:28:28 MST Xref: g2news1.google.com comp.lang.ada:18978 Date: 2007-12-18T12:28:28+00:00 List-Id: Hi, given the following two simple programs hello.adb ----------------------- with ada.text_io; procedure hello is begin ada.text_io.put("hello"); end hello; ----------------------- hello.c ----------------------- #include int main() { printf("hello"); } ----------------------- the result for the ada program is: ----------------------- $ ./hello_in_ada hello $ ----------------------- and for the c program: ----------------------- $ ./hello_in_c hello$ ----------------------- 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? I looked for answers, but found none. Thanks, Paul Zacharzewski