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,6e5bbc32bcc6c91c,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!q16g2000yqg.googlegroups.com!not-for-mail From: xorquewasp@googlemail.com Newsgroups: comp.lang.ada Subject: SPARK constants across packages Date: Sun, 7 Jun 2009 09:53:00 -0700 (PDT) Organization: http://groups.google.com Message-ID: <07c4ba96-85c2-4588-a63a-6d61a27f2349@q16g2000yqg.googlegroups.com> 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 1244393580 3835 127.0.0.1 (7 Jun 2009 16:53:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 7 Jun 2009 16:53:00 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q16g2000yqg.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:6355 Date: 2009-06-07T09:53:00-07:00 List-Id: SPARK appears to forbid this: X : constant Integer := P.Y; Where Y is a constant of the same type defined in package P; The grammar for SPARK 95 specifies that only a static_simple_expression can appear after the assignment operator for constant declarations. Is there a particular reason that SPARK doesn't allow this?