From: xorque <xorquewasp@googlemail.com>
Subject: Array initialization in SPARK
Date: Mon, 15 Jun 2009 05:01:56 -0700 (PDT)
Date: 2009-06-15T05:01:56-07:00 [thread overview]
Message-ID: <d45e3ef2-bd36-460d-9379-3e49b1c24996@t16g2000yqi.googlegroups.com> (raw)
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...
next reply other threads:[~2009-06-15 12:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-15 12:01 xorque [this message]
2009-06-15 12:10 ` Array initialization in SPARK xorque
-- strict thread matches above, loose matches on Subject: below --
2010-10-28 10:13 Peter C. Chapin
2010-10-28 12:47 ` Phil Thornley
2010-10-28 14:51 ` Peter C. Chapin
2010-10-28 15:23 ` Peter C. Chapin
2010-10-28 16:26 ` Alexander Senier
2010-10-28 16:38 ` Phil Thornley
2010-10-30 1:04 ` Phil Clayton
2010-10-30 8:10 ` AdaMagica
2010-10-30 13:11 ` Phil Clayton
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox