TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Date: Tue, 10 Oct 2000 23:31:21 -0500
Reply-To: Paul Stachour <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
From: Paul Stachour <[log in to unmask]>
Parts/Attachments: text/plain (29 lines)
Chad Bremmon wrote:

> http://www.embedded.com/2000/0010/0010feat2.htm
>

Chad, may I compliment you on a well-written article.  I might have made
one additional
point about switch/case.   I have found that the Ada REQUIREMENT that
all values of
the case be present is important to maintenance.  If I have two
programs, one in C/C++
that uses enumerations, and one in Ada that also uses the enumerations,
when I add a
value to the set of enumerations

   ALL MY Ada CODE BREAKS, it fails to compile;  which is *exactly* what
I want.

   MY C CODE APPEARS TO BE OK; it compiles, it is just full of places
where there is
no action for an enumeration.  It is broken, and it may take a LONG-TIME
to find and fix
all of those places.  Why, many of them might not get found till the
code is in the field.

   Score another point for the ease of Ada reliabliity.

Cheers, ..Paul S.

ATOM RSS1 RSS2