comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Dynamically tagged expression not allowed. Why?
Date: Thu, 03 Jun 2010 10:21:05 +0200
Date: 2010-06-03T10:21:05+02:00	[thread overview]
Message-ID: <op.vdpthfh9xmjfy8@garhos> (raw)
In-Reply-To: nr72ugwk18u4.1wxlyjonm4cod.dlg@40tude.net

Le Thu, 03 Jun 2010 09:57:33 +0200, Dmitry A. Kazakov  
<mailbox@dmitry-kazakov.de> a écrit:
> You cannot have bodies in the package specifications. This is a difficult
> problem, since present construction model does not support deferred
> initialization. In short, you cannot have this in a single package.
OK. I had though the example was an exact extract from the real thing.

So indeed, if the variable is to be in a spec, it needs two packages, one  
containing the function, and one containing the variable, so that one  
package -- the one containing the function -- can be elaborated before the  
other -- containing the variable. A child package would be a good choice  
to hold that variable.


-- 
There is even better than a pragma Assert: a SPARK --# check.
--# check C and WhoKnowWhat and YouKnowWho;
--# assert Ada;
--  i.e. forget about previous premises which leads to conclusion
--  and start with new conclusion as premise.



  reply	other threads:[~2010-06-03  8:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-29 17:36 Dynamically tagged expression not allowed. Why? Marc A. Criley
2010-05-29 18:23 ` Dmitry A. Kazakov
2010-06-03  2:37   ` Yannick Duchêne (Hibou57)
2010-06-03  7:48     ` Dmitry A. Kazakov
2010-06-01 23:36 ` Randy Brukardt
2010-06-03  2:36   ` Yannick Duchêne (Hibou57)
2010-06-03  7:57     ` Dmitry A. Kazakov
2010-06-03  8:21       ` Yannick Duchêne (Hibou57) [this message]
2010-06-03 16:03     ` Adam Beneschan
2010-06-05 18:47   ` Marc A. Criley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox