From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: SPARK understand me very well... me neither
Date: Sun, 15 Aug 2010 02:45:51 +0200
Date: 2010-08-15T02:45:51+02:00 [thread overview]
Message-ID: <op.vhge2phjule2fv@garhos> (raw)
In-Reply-To: i4732h$2let$1@adenine.netfront.net
Le Sat, 14 Aug 2010 23:50:08 +0200, Jeffrey Carter
<spam.jrcarter.not@spam.not.acm.org> a écrit:
>> But what seems important to me and I would to underline, was also that
>> if I did not knew this was possible, this was because it was fr from my
>> mind. And this was far from my mind, because looking at it as-is, I
>> would have said “what does it prove ? what does it offer ?”. In short,
>> this looks like a bad logical interface to me.
>
> It doesn't prove anything, and it's not supposed to. It's a
> precondition. It says, "This precondition must be true for this
> operation to give correct results." It is the caller's duty to meet the
> precondition.
Reading you again, I understand I did not choose the good words. I should
have said “what does it defines ?” (like defining what a valid context is,
in a concrete way). Otherwise yes, this does not have to prove anything,
and this can't, because nothing is provable at this level.
--
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.
next prev parent reply other threads:[~2010-08-15 0:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-13 20:12 SPARK understand me very well... me neither Yannick Duchêne (Hibou57)
2010-08-14 4:57 ` Yannick Duchêne (Hibou57)
2010-08-14 16:04 ` Phil Thornley
2010-08-14 16:44 ` Yannick Duchêne (Hibou57)
2010-08-14 19:08 ` Phil Thornley
2010-08-14 20:48 ` Yannick Duchêne (Hibou57)
2010-08-14 21:07 ` Yannick Duchêne (Hibou57)
2010-08-14 21:50 ` Jeffrey Carter
2010-08-14 22:20 ` Yannick Duchêne (Hibou57)
2010-08-15 0:45 ` Yannick Duchêne (Hibou57) [this message]
2010-08-14 16:57 ` Yannick Duchêne (Hibou57)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox