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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2a77c9c618b7919 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.68.135.66 with SMTP id pq2mr3473429pbb.8.1351478419502; Sun, 28 Oct 2012 19:40:19 -0700 (PDT) Path: 6ni48369pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Ada.Storage_IO: applied example? Date: Tue, 23 Oct 2012 14:02:43 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: Mime-Version: 1.0 Injection-Date: Tue, 23 Oct 2012 21:02:50 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="c90e089bb12f916d4cef1340590eea0f"; logging-data="28662"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gq776UX/cPWMkbq6VIrbOdZzEp5J662A=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 In-Reply-To: Cancel-Lock: sha1:1F/0yFYdJDVWOBm2J+BenngS+hc= Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: 2012-10-23T14:02:43-07:00 List-Id: 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. -- Jeff Carter "Pray that there's intelligent life somewhere up in space, 'cause there's bugger all down here on earth." Monty Python's Meaning of Life 61