From: rod.chapman@praxis-cs.co.uk (Rod Chapman)
Subject: Re: [Spark] Using defered constants
Date: 16 Apr 2003 06:01:04 -0700
Date: 2003-04-16T13:01:04+00:00 [thread overview]
Message-ID: <cf2c6063.0304160501.62dcbd9d@posting.google.com> (raw)
In-Reply-To: slrnb9o1ke.oo.lutz@taranis.iks-jena.de
Lutz Donnerhacke <lutz@iks-jena.de> wrote in message news:> 7 private
> 8 --# hide t;
> 9 type x is new Integer;
> 10 cx : constant x := 0;
> 11 end t;
Tricky! You are trying to arrange a package as follows:
Visible spec: SPARK
Private part of spec: hidden, Ada95
Body: SPARK
This is actually very difficult, since logically the private is
_is_ part of the body! In partiular, the Examiner does not
assume anything much about the content of the private part when
analysing the body, hence the error that you're seeing.
Obvious point: why "type x is new Integer;"?? Do you really
need an explicit derived type there?
Why not "type X is Integer'First .. Integer'Last;"?
This is legal SPARK, so no need to hide the private part at all.
- Rod
next prev parent reply other threads:[~2003-04-16 13:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-15 13:18 [Spark] Using defered constants Lutz Donnerhacke
2003-04-16 13:01 ` Rod Chapman [this message]
2003-04-16 13:37 ` Lutz Donnerhacke
2003-04-16 15:05 ` Hyman Rosen
2003-04-16 15:15 ` Lutz Donnerhacke
2003-04-16 15:27 ` Vinzent Hoefler
2003-04-23 9:28 ` Peter Amey
2003-04-23 10:52 ` Lutz Donnerhacke
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox