comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Answering an Ada/COBOL Question
Date: 1999/11/15
Date: 1999-11-15T00:00:00+00:00	[thread overview]
Message-ID: <80pd2g$8fg$1@nnrp1.deja.com> (raw)
In-Reply-To: 382FA652.A72E4150@concentric.net

In article <382FA652.A72E4150@concentric.net>,
  Joseph P Vlietstra <joevl@concentric.net> wrote:
> For example, the following decision table:
>         A    B    C
>         T    X    X    Action_1
>         F    T    X    Action_2
>         F    F    T    Action_3
>         F    F    F    Action_4
> can be implemented as:
>         if A then
>             Action_1;
>         elsif B then
>              Action_2;
>         elsif C then
>             Action_3;
>         else
>             Action_4;
>         end if;

But this is a poor implementation because it overspecifies,
precisely by not clearly indicating exactly what the don't
care conditions are. One very serious problem with the
elsif structure is precisely that you don't know if the
ordering is critical or not. When it comes to modifying
the conditions, this lack of information can be problematical.

When we deal with conditions that are not exclusive, this
problem always arises, and is one of the reasons that complex
condiitonals are so hard to deal with in maintenance
programming.


Sent via Deja.com http://www.deja.com/
Before you buy.




      reply	other threads:[~1999-11-15  0:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-12  0:00 Answering an Ada/COBOL Question Richard D Riehle
1999-11-13  0:00 ` Brian Rogoff
1999-11-14  0:00   ` Robert Dewar
1999-11-13  0:00     ` Brian Rogoff
1999-11-14  0:00       ` Robert Dewar
1999-11-14  0:00         ` Brian Rogoff
1999-11-15  0:00           ` Richard D Riehle
1999-11-15  0:00             ` Brian Rogoff
1999-11-16  0:00               ` Robert Dewar
1999-11-16  0:00               ` Erlang (Was Re: Answering an Ada/COBOL Question) Vladimir Olensky
1999-11-16  0:00                 ` Vladimir Olensky
1999-11-17  0:00                   ` Samuel Tardieu
1999-11-19  0:00                     ` Robert Dewar
1999-11-22  0:00                       ` Samuel Tardieu
1999-11-22  0:00                         ` Brian Rogoff
1999-11-17  0:00                 ` Samuel Tardieu
1999-11-18  0:00                   ` Robert Dewar
1999-11-19  0:00                     ` Vladimir Olensky
1999-11-19  0:00                   ` Vladimir Olensky
1999-11-16  0:00             ` Answering an Ada/COBOL Question Robert Dewar
1999-11-16  0:00               ` Richard D Riehle
1999-11-18  0:00                 ` Robert Dewar
1999-11-18  0:00                   ` Marin Condic
1999-11-19  0:00                     ` Robert Dewar
1999-11-19  0:00                       ` Marin Condic
1999-11-19  0:00                         ` Robert Dewar
1999-11-18  0:00                   ` tmoran
1999-11-19  0:00                     ` Robert I. Eachus
1999-11-15  0:00 ` Joseph P Vlietstra
1999-11-15  0:00   ` Robert Dewar [this message]
replies disabled

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