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,5b3aa4bc9027f04e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.cs.univ-paris8.fr!gegeweb.org!aioe.org!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Unconstrained Arrays Date: Thu, 26 Mar 2009 01:32:14 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <0348afd0-223e-44bb-9b5d-80b02b38365e@v35g2000pro.googlegroups.com> NNTP-Posting-Host: jsj6/wjO/cHSAHkcGxcp1Q.user.aioe.org X-Complaints-To: abuse@aioe.org NNTP-Posting-Date: Thu, 26 Mar 2009 01:32:14 +0000 (UTC) X-Notice: Filtered by postfilter v. 0.7.7 X-Newsreader: Tom's custom newsreader Cancel-Lock: sha1:Uzh0DP2pLnaTevzxKyH6MHLgTu0= Xref: g2news1.google.com comp.lang.ada:4323 Date: 2009-03-26T01:32:14+00:00 List-Id: >Well, you can initialize it with garbage data instead of useless data: > > Buffer : aliased Ada.Streams.Stream_Element_Array := (1 .. 2048 => <>); Life is so much simpler if you drop the pointers and "aliased".