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,deffccd74319c23d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!proxad.net!skynet.be!newspost001!tjb!not-for-mail Date: Mon, 09 May 2005 13:57:30 +0200 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Sending Variable Length Messages with GNAT.Sockets References: <1115633512.107824.259680@g14g2000cwa.googlegroups.com> <427f3dfa$0$28058$ba620e4c@news.skynet.be> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <427f5038$0$7740$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 5c1798ed.news.skynet.be X-Trace: 1115639864 news.skynet.be 7740 81.246.233.244:4746 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:10973 Date: 2005-05-09T13:57:30+02:00 List-Id: Jeff C wrote: >> also, i can think of no way to send "x" bytes of a type and not the >> entire thing, unless writing your own stream input and output procedures. >> > > Note that the last statement is almost written as if this is a bad > thing. (And I suspect someone that tried it for the first time might > feel that way)...But, there is really nothing wrong with writing your > own input and output procedures. It is mildly painful once and then the > rest of the code ends up pretty clean. sorry for not being very friendly in this statement, but it was not my intention to let people feel that way. personnaly i think using well-defined custom stream attributes allows a more language independant use of streams, and as such a better interoperability between softwares. so it is clearly a good thing. -- rien