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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,14da4c08f1736a33 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!30g2000yql.googlegroups.com!not-for-mail From: "Peter C. Chapin" Newsgroups: comp.lang.ada Subject: Re: Array initialization in SPARK Date: Thu, 28 Oct 2010 07:51:15 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3c36d3ba-6748-4aa9-9304-a219b11415bb@30g2000yql.googlegroups.com> References: <03b3b80e-9313-45b8-939a-7dde7780288c@y23g2000yqd.googlegroups.com> NNTP-Posting-Host: 67.142.175.27 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1288277475 325 127.0.0.1 (28 Oct 2010 14:51:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 28 Oct 2010 14:51:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 30g2000yql.googlegroups.com; posting-host=67.142.175.27; posting-account=nNN2XAoAAAAvavi7GAVEB_yDQjB_6tZb User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14896 Date: 2010-10-28T07:51:15-07:00 List-Id: On Oct 28, 8:47=A0am, Phil Thornley wrote: > It's far better to use the accept annotation (which is there for this > sort of situation): Thanks for the suggestion. I can see the value of accept here. In this case its pretty obvious that the entire output matrix is being assigned. I have a couple of other procedures with a similar issue but where it is much less obvious that they are setting values for all matrix elements (they are supposed to be doing so). I can see that while accept is a useful tool one would have to be careful about sprinkling them around too liberally. I'll take a closer look at those other procedures and see if a little code reorganization might be desirable. Thanks again! Peter