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: a07f3367d7,2a77c9c618b7919 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Received: by 10.180.101.9 with SMTP id fc9mr1350691wib.3.1351391168519; Sat, 27 Oct 2012 19:26:08 -0700 (PDT) Path: q13ni70621wii.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Ada.Storage_IO: applied example? Date: Tue, 23 Oct 2012 22:56:55 +0200 Organization: Ada @ Home Message-ID: References: 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-23T22:56:55+02:00 List-Id: Le Tue, 23 Oct 2012 22:28:34 +0200, Dmitry A. Kazakov = a =C3=A9crit: > On Tue, 23 Oct 2012 21:42:43 +0200, Yannick Duch=C3=AAne (Hibou57) wro= te: > >> I'm seeking for a tiny use case showing `Ada.Storage_IO` in action. > > It looks useless at first glance. Yes, indeed, it looks, lol. That's precisely the reason why I opened thi= s = topic. I would hardly believe something that usefulness belongs to the = standard packages, so I guess I am missing something, and would like to = = learn what it is. Is this a kind of holder container? > The buffer size is fixed and implementation defined(!). It's implementation defined, but not =E2=80=9Crandomly=E2=80=9D: the siz= e correspond to = the count of storage elements (it self, implementation defined) required= = to store an instance of the element type which is the parameter of the = generic package. That's implementation defined, but predictable. -- = =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