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,24d7acf9b853aac8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 10 Aug 2010 12:17:50 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: S-expression I/O in Ada References: <547afa6b-731e-475f-a7f2-eaefefb25861@k8g2000prh.googlegroups.com> <8ae8e899-9eef-4c8c-982e-bfdfc10072f1@h17g2000pri.googlegroups.com> <258zlxrv4fn6.1vszho1rtmf48$.dlg@40tude.net> <984db477-973c-4a66-9bf6-e5348c9b95f2@n19g2000prf.googlegroups.com> <46866b8yq8nn$.151lqiwa0y2k6.dlg@40tude.net> <13b07f2c-2f35-43e0-83c5-1b572c65d323@y11g2000yqm.googlegroups.com> <13tpf7ya3evig$.h05p3x08059s$.dlg@40tude.net> <1lhdkikeh2sif.bd3pon3knbv8.dlg@40tude.net> <7027f0c6-d909-428c-ab8d-6ba1bd7ff4b2@x21g2000yqa.googlegroups.com> <1424bzz54867w.soj1iq72wkwl$.dlg@40tude.net> <9db37b80-acbb-4c9f-a646-34f108f52985@v15g2000yqe.googlegroups.com> In-Reply-To: <9db37b80-acbb-4c9f-a646-34f108f52985@v15g2000yqe.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4c61274c$0$6765$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 10 Aug 2010 12:17:48 CEST NNTP-Posting-Host: b48096cc.newsspool3.arcor-online.net X-Trace: DXC=?KQV]n`\ii;nBOkdL^Lo7>McF=Q^Z^V384Fo<]lROoR18kF:Lh>_cHTX3j=>N\XHLgbCn0 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:13044 Date: 2010-08-10T12:17:48+02:00 List-Id: On 10.08.10 10:56, Natacha Kerensikova wrote: >> Note that Stream_Element is machine-depended as well. > > I'm sadly aware of that. I need an octet-sequence to follow the S- > expression standard, and there is here an implementation trade-off: > assuming objects already know how to serialize themselves into a > Stream_Element_Array, I can either code a converter from > Stream_Element_Array to octet-sequence, or reinvent the wheel and code > a converter for each type directly into an octet-sequence. For some > strange reason I prefer by far the first possibility. In any case, these small articles on data representation might be worth reading: http://www2.adacore.com/2008/03/03/gem-27/ http://www2.adacore.com/2008/03/17/gem-28/ Georg