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,c3f904d887804b67,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!postnews.google.com!t16g2000yqi.googlegroups.com!not-for-mail From: xorque Newsgroups: comp.lang.ada Subject: Array initialization in SPARK Date: Mon, 15 Jun 2009 05:01:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 81.86.41.187 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1245067316 27333 127.0.0.1 (15 Jun 2009 12:01:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 15 Jun 2009 12:01:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t16g2000yqi.googlegroups.com; posting-host=81.86.41.187; posting-account=D9GNUgoAAAAmg7CCIh9FhKHNAJmHypsp User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009030814 Iceweasel/3.0.9 (Debian-3.0.9-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6479 Date: 2009-06-15T05:01:56-07:00 List-Id: Hello. What's the correct way to initialize an array in SPARK? Every method I've tried results in semantic or flow errors: 9 Status (Index) := 0; ^ !!! Flow Error : 23: Statement contains reference(s) to variable Status which has an undefined value. 6 Status : Status_t := (others => 0); ^ *** Syntax Error : No EXPRESSION can start with reserved word "OTHERS". 7 (Status_Element_Index_t'First => 0, ^ *** Syntax Error : No complete SIMPLE_EXPRESSION can be followed by "=>" here. And so on...