comp.lang.ada
 help / color / mirror / Atom feed
From: agate!spool.mu.edu!yale.edu!jvnc.net!gmd.de!Germany.EU.net!mcsun!sunic!se unet!enea!sommar@ucbvax.Berkeley.EDU  (Erland Sommarskog)
Subject: Re: Suggestion for multivalue boolean case for 9X
Date: 13 Dec 92 15:24:38 GMT	[thread overview]
Message-ID: <1992Dec13.152438.9929@enea.se> (raw)

Douglas N. Surber (dnsurber@lescsse.jsc.nasa.gov) writes:
>    case (cond_1, cond_2, cond_3) is
>	when (true,  true,  true ) =>
>	    s_t_t_t;
>	when (true,  true,  false) =>
>	    s_t_t_f;
>....
>    end case;

Cobol's EVALUATE works something this. It was a couple a years ago
I played with it, but I recall that I had handy use of it. Particulary
as you could throw in ANY for a parameter to say that for the combination
of the other ones this one didn't care. (Or values that did care had been
covered by previous alternatives.) Unfortunate Cobol didn't allow you
to express non-contiguous values for the same alternative, which some-
what limited the usefulness.

But that was Cobol. Ada has better means as already have been shown by
other authors in this conferences.

>I don't know if it's too late to consider this for 9X,

Thankfully :-) it is far too late. But they scrapped my idea of chained
boolean expressions (e.g. a > b > c) too, so you are not alone.
-- 
Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se

             reply	other threads:[~1992-12-13 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-12-13 15:24 agate!spool.mu.edu!yale.edu!jvnc.net!gmd.de!Germany.EU.net!mcsun!sunic!se [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-12-14 21:07 Suggestion for multivalue boolean case for 9X John Bollenbacher
1992-12-11 20:08 Alex Blakemore
1992-12-11 19:38 James Crigler
1992-12-11  1:15 Mark Dunbar
1992-12-10 22:57 Douglas N. Surber
replies disabled

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