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,5ae752c88e0dde5e,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news-2.dfn.de!news.dfn.de!news.uni-stuttgart.de!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Using representation clauses in networking software Date: Sun, 15 Aug 2010 13:33:32 +0200 Message-ID: <8739ugqfeb.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: idssi.enyo.de 1281872012 7511 172.17.135.6 (15 Aug 2010 11:33:32 GMT) X-Complaints-To: news@enyo.de Cancel-Lock: sha1:CJ/+BD6AjSIs0D/iVr9QqL+LKMY= Xref: g2news1.google.com comp.lang.ada:13330 Date: 2010-08-15T13:33:32+02:00 List-Id: Have there been any efforts to fix representation clauses so that they are suitable for expressing elements commonly found in networking protocols? My understanding is that representation clauses are totally unsuitable for this purpose because they do not allow the programmer to express endianness. I dimly recall a technical report which argued that expressing endianness portably was impossible. However, Erlang's bit syntax seems to be a counterexample, so I wonder if that issue has been picked up in recent years.