comp.lang.ada
 help / color / mirror / Atom feed
From: adaworks@netcom.com (AdaWorks)
Subject: Assertions in Ada
Date: 1997/08/21
Date: 1997-08-21T00:00:00+00:00	[thread overview]
Message-ID: <adaworksEF8qn5.I15@netcom.com> (raw)


Subject: Assertions in Ada
Newsgroups: comp.lang.ada
Organization: Netcom On-Line Services
Summary: 
Keywords: 

Subject: Assertions in Ada
Newsgroups: comp.lang.ada
Organization: Netcom On-Line Services
Summary: 
Keywords: 

I have found the thread on Eiffel versus Ada quite interesting. For a
long time I have believed that Ada should include some form of assertion
mechanism.  I favor the Eiffel words: require, ensure, and invariant.

These could be pragmas in the general form,

    pragma Require(Entity, Data-type, Boolean-Expression)

which would add no new syntax to the language.  Or they could be in
the form of a child package to Ada.Exceptions, also adding no new
syntax to the language.  

In other words, Ada may not need to be redesigned to introduce assertions.
Existing language features might work just fine.  Much of the argument
in favor of Eiffel would simply vanish with the addition of a reliable
assertion mechanism in Ada.

Richard Riehle

-- 

richard@adaworks.com
AdaWorks Software Engineering
Suite 30
2555 Park Boulevard
Palo Alto, CA 94306
(415) 328-1815
FAX  328-1112




             reply	other threads:[~1997-08-21  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-21  0:00 AdaWorks [this message]
1997-08-21  0:00 ` Assertions in Ada Tucker Taft
1997-08-21  0:00   ` Brian Rogoff
1997-08-22  0:00     ` Robert Dewar
     [not found]   ` <JSA.97Aug21183650@alexandria.organon.com>
1997-08-21  0:00     ` Robert Dewar
1997-08-22  0:00       ` Tucker Taft
1997-08-23  0:00         ` Ken Garlington
1997-08-24  0:00           ` Brian Rogoff
     [not found]         ` <199708251351.PAA13197@basement.replay.com>
1997-08-25  0:00           ` Robert Dewar
1997-08-27  0:00             ` Adrian P. Morgan
1997-08-31  0:00               ` Robert A Duff
1997-08-23  0:00   ` Ken Garlington
1997-08-24  0:00     ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1997-08-22  0:00 AdaWorks
replies disabled

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