comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: Missing CR/LF in Gnat files?
Date: Sun, 16 Sep 2007 18:38:19 GMT
Date: 2007-09-16T18:38:19+00:00	[thread overview]
Message-ID: <vKeHi.105741$Fc.31464@attbi_s21> (raw)
In-Reply-To: <46ecbbdf$1_7@news.bluewin.ch>

Gautier wrote:
>   while not End_of_File(Standard_input) loop
>     Get_Line(s,l);
>     Put_Line(s(1..l));
>   end loop;

Even better is

Ada.Text_IO.Put_Line (Item => Ada.Text_IO.Get_Line);

This is Ada 07; Ada-95 users can use PragmARC.Get_Line instead of 
Ada.Text_IO.Get_Line; and Ada-83 users can modify PragmARC.Get_Line to 
get rid of the hierarchical name.

http://pragmada.home.mchsi.com/

-- 
Jeff Carter
"Perfidious English mouse-dropping hoarders."
Monty Python & the Holy Grail
10



  reply	other threads:[~2007-09-16 18:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-15 22:19 Missing CR/LF in Gnat files? Phaedrus
2007-09-15 23:05 ` Sloan.Kohler
2007-09-15 23:25   ` Phaedrus
2007-09-16  5:16     ` Gautier
2007-09-16 18:38       ` Jeffrey R. Carter [this message]
2007-09-16 22:15         ` Phaedrus
2007-09-16 23:00 ` anon
replies disabled

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