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: a07f3367d7,8a39a73d0242ca42 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT.Sockets. Blocking? References: <158756da-21b7-4e2d-b288-7ba030f1f35c@25g2000yqb.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <8xx0m.756432$yE1.646508@attbi_s21> NNTP-Posting-Host: 173.16.158.68 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1245881540 173.16.158.68 (Wed, 24 Jun 2009 22:12:20 GMT) NNTP-Posting-Date: Wed, 24 Jun 2009 22:12:20 GMT Organization: AT&T ASP.att.net Date: Wed, 24 Jun 2009 22:12:20 GMT Xref: g2news2.google.com comp.lang.ada:6604 Date: 2009-06-24T22:12:20+00:00 List-Id: 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