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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a77c9c618b7919 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.66.90.36 with SMTP id bt4mr4468785pab.5.1351063190340; Wed, 24 Oct 2012 00:19:50 -0700 (PDT) Path: s9ni39028pbb.0!nntp.google.com!news.glorb.com!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada.Storage_IO: applied example? Date: Wed, 24 Oct 2012 09:20:15 +0200 Organization: cbb software GmbH Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Date: 2012-10-24T09:20:15+02:00 List-Id: On Tue, 23 Oct 2012 14:02:43 -0700, Jeffrey Carter wrote: > On 10/23/2012 01:28 PM, Dmitry A. Kazakov wrote: >> On Tue, 23 Oct 2012 21:42:43 +0200, Yannick Duch�ne (Hibou57) wrote: >> >>> I'm seeking for a tiny use case showing `Ada.Storage_IO` in action. >> >> It looks useless at first glance. The buffer size is fixed and >> implementation defined(!). Why would anybody use that rather than plain >> array? > > The buffer is the correct size that corresponds to an object of Element_Type. > Much easier than figuring that out oneself. Less than useless, as the name (I/O) gives a (false) impression that one could read/write more than just one item into the thing. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de