comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Unwanted newline
Date: Mon, 13 Jun 2005 14:12:57 +0200
Date: 2005-06-13T14:12:56+02:00	[thread overview]
Message-ID: <42ad7848$0$27776$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <1118653872.708684.57360@g14g2000cwa.googlegroups.com>

rm-throwaway4@gunlab.com.ru wrote:

> begin
> 
>    PUT("X");
> 
> end test;
...
> 
> Apparently Text_Io places newline when program exits even if I did not
> ask for it. How to output ONLY "X" in Ada, without newline?


Ada's Text_IO is a bit more "sophisticated" than C's stdio.
Try using streams instead:

   declare
      bare_out: constant Stream_Access := Stream(Text_IO.Current_Output);
   begin
      Character'write(bare_out, 'X');
   end;


-- Georg 



  parent reply	other threads:[~2005-06-13 12:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-13  9:11 Unwanted newline rm-throwaway4
2005-06-13 11:59 ` Robert A Duff
2005-06-13 12:12 ` Georg Bauhaus [this message]
2005-06-17 20:20   ` Dr. Adrian Wrigley
2005-06-17 20:41     ` Mark Lorenzen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox