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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,971aa11c293c3db1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-20 05:27:42 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!nerim.net!norfair.nerim.net!not-for-mail From: "Bertrand Augereau" Newsgroups: comp.lang.ada Subject: Re: Ada The Best Language? Date: Fri, 20 Jul 2001 14:32:05 +0200 Organization: Nerim -- xDSL Internet Provider Message-ID: <9j983r$20jq$1@norfair.nerim.net> References: <5be89e2f.0107170838.c71ad61@posting.google.com> <5be89e2f.0107180235.726d46a8@posting.google.com> <3B55B01A.DAC06D79@icn.siemens.de> <5be89e2f.0107181248.73298c57@posting.google.com> <9j949b$1ujp$1@norfair.nerim.net> NNTP-Posting-Host: aboukir-101-2-1-inutero.adsl.nerim.net X-Trace: norfair.nerim.net 995632060 66170 62.4.19.69 (20 Jul 2001 12:27:40 GMT) X-Complaints-To: abuse@nerim.net NNTP-Posting-Date: Fri, 20 Jul 2001 12:27:40 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:10324 Date: 2001-07-20T14:32:05+02:00 List-Id: Chris and Lutz, Ok, that's what I was thinking about but I had to be sure. In fact C++ bitfields allow you to pack information exactly (well almost exactly, you have to take care of the offset with appropriate padding, but bitfields take care of the 'range') this way in your ADT. This is almost equivalent. But I'm not sure of endianness consideration in both cases, especially for network code. Can somebody comment? Anyway I like this syntax. It is elegant. "Lutz Donnerhacke" a �crit dans le message news: slrn9lg7ve.jq.lutz@taranis.iks-jena.de... > * Bertrand Augereau wrote: > >> Ada 95 on the other hand gives you the ability to specify the layout of > >> structures with greater precision (in general). This gives it an edge > >> over C++. > >What do you mean? > > https://www.iks-jena.de/mitarb/lutz/ada/net/net-packet-ip-v4__ads.htm