comp.lang.ada
 help / color / mirror / Atom feed
* Preconditions which anyway would be caught?
@ 2014-08-09 15:35 Victor Porton
  2014-08-09 15:40 ` mockturtle
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Victor Porton @ 2014-08-09 15:35 UTC (permalink / raw)


function Inverse (X: Float) is
begin
   return 1/X;
end
   with Pre => (X /= 0);

Is this precondition superfluous? (it anyway could be caught by erroneous 
1/X operation)

-- 
Victor Porton - http://portonvictor.org


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-08-11  7:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-09 15:35 Preconditions which anyway would be caught? Victor Porton
2014-08-09 15:40 ` mockturtle
2014-08-09 16:08 ` Jeffrey Carter
2014-08-09 19:21 ` Peter Chapin
2014-08-09 19:24   ` Peter Chapin
2014-08-09 21:04     ` Niklas Holsti
2014-08-09 22:57       ` Peter Chapin
2014-08-10 20:58         ` Niklas Holsti
2014-08-10  7:24       ` Dmitry A. Kazakov
2014-08-11  0:00         ` Shark8
2014-08-11  7:31           ` Dmitry A. Kazakov

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