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,7db5fb0599fd4b76 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!newsfeed.stueberl.de!peernews3.colt.net!colt.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: TCP/IP Sockets with GNAT.Sockets Date: Tue, 03 May 2005 22:48:56 +0100 Organization: Pushface Message-ID: References: <1115001752.291144.218410@z14g2000cwz.googlegroups.com> <427618e9$0$7743$ba620e4c@news.skynet.be> <1115045740.838321.306480@g14g2000cwa.googlegroups.com> <42765108$0$22419$ba620e4c@news.skynet.be> <020520051956181888%jaco@neottia.net> <427671d4$0$166$edfadb0f@dread11.news.tele.dk> <42777609$0$142$edfadb0f@dread11.news.tele.dk> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1115156939 25684 62.49.19.209 (3 May 2005 21:48:59 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 3 May 2005 21:48:59 +0000 (UTC) Cancel-Lock: sha1:UQiT6GHq5fIr3DZEw1WB1gGxIJ8= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:10899 Date: 2005-05-03T22:48:56+01:00 List-Id: Poul-Erik Andreasen writes: > Simon Wright wrote: >> Why do you say Character'First & not ASCII.NUL? > > Not for any partikulari reason. > > When i started developing job i tried with ASCII.NUL > things didn't work out(surely for som other reason); > they did when i first was using character'first. > (also surely for som other reason); > > Are there any reason why ASCII.NUL should be better; > > ASCII.NUL are defined as Character'First; It just seems that ASCII.NUL is a more appropriate name for what you are trying to send .. I suppose Character'Val (0) would also do. It seems almost accidental that Character'First gives the value you need .. the others are more explicitly related to the problem. Just my 2p!