comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@nospam.acm.org>
Subject: Re: GNAT.Sockets. Blocking?
Date: Wed, 24 Jun 2009 22:12:20 GMT
Date: 2009-06-24T22:12:20+00:00	[thread overview]
Message-ID: <8xx0m.756432$yE1.646508@attbi_s21> (raw)
In-Reply-To: <Llv0m.57124$kh1.47752@newsfe07.ams2>

Per Sandberg wrote:
> Why not just be lazy??
> The folowing 10 lines will achive the same as your 64.
> 
> -----------------------------
> with Ada.Text_IO;
> with AWS.Client;
> with AWS.Response;
> procedure ThttpGet is
> begin
>    Ada.Text_IO.Put_Line
>      (AWS.Response.Message_Body
>         (AWS.Client.Get (URL => "http://www.google.com")));
> end ThttpGet
> -------------------------------

Looks like 9 lines to me. 5 statements (terminator semicolons).

You need a ';' at the end.

-- 
Jeff Carter
"Now go away or I shall taunt you a second time."
Monty Python & the Holy Grail
07



  parent reply	other threads:[~2009-06-24 22:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-23 21:06 GNAT.Sockets. Blocking? Jacob M. H. Smith
2009-06-24  0:14 ` John B. Matthews
2009-06-24  4:55   ` Jacob M. H. Smith
2009-06-24 14:36     ` John B. Matthews
2009-06-24  7:47 ` Dmitry A. Kazakov
2009-06-24 13:32 ` anon
2009-06-24 14:03 ` anon
2009-06-24 15:14 ` Pascal Obry
2009-06-24 18:44 ` Simple solution was " anon
2009-06-24 18:47 ` Per Sandberg
2009-06-24 19:51   ` Pascal Obry
2009-06-24 22:12   ` Jeffrey R. Carter [this message]
2009-06-25 17:30     ` Jacob M. H. Smith
replies disabled

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