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,2ac407a2a34565a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.189.197 with SMTP id gk5mr188602pbc.1.1330570987888; Wed, 29 Feb 2012 19:03:07 -0800 (PST) Path: h9ni25180pbe.0!nntp.google.com!news1.google.com!news2.google.com!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Array Help? Date: Wed, 29 Feb 2012 22:03:07 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <10615783-d4a9-4cbd-8971-53ba1100d6a0@b18g2000vbz.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1330570987 9873 192.74.137.71 (1 Mar 2012 03:03:07 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 1 Mar 2012 03:03:07 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:0XMrBJnScffHVl6d1pjq6EyvFVk= Content-Type: text/plain; charset=us-ascii Date: 2012-02-29T22:03:07-05:00 List-Id: Jeffrey Carter writes: > I think if I were doing it in Ada today, I'd have an unconstrained array > type, and then create a constrained subtype with bounds determined from > the input. Fair enough. It's a mapping from years to tree-ring data, as opposed to a sequence of tree-ring data items, so it certainly makes sense to have 1600..1970. > But remembering the monolithic, goto-filled crap I coded in those days, > there are a lot of things I'd do differently today. ;-) - Bob