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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a77c9c618b7919,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.217.129 with SMTP id oy1mr4288920pbc.3.1351021369831; Tue, 23 Oct 2012 12:42:49 -0700 (PDT) Path: s9ni36849pbb.0!nntp.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Ada.Storage_IO: applied example? Date: Tue, 23 Oct 2012 21:42:43 +0200 Organization: Ada @ Home Message-ID: NNTP-Posting-Host: Yg0a4VDCOJNg3L8bh8UyKA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.02 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-10-23T21:42:43+02:00 List-Id: Hi all the people, I'm seeking for a tiny use case showing `Ada.Storage_IO` in action. I al= so = believe the topic is worth for many people, beginners or not, as this is= = the kind of stuff so typical of Ada. I always liked the clean distinctio= n = Ada makes between streams and files. Looking for some reminder about it = in = the RM, I just noticed this `Ada.Storage_IO` I've never noticed before.,= = but feel surprised the buffer always contains a single element; thus the= = question. The RM makes a reference from there to `Ada.Direct_IO`, but th= e = latter does not reciprocally mention the former. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity