home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / ada / 3645 < prev    next >
Encoding:
Text File  |  1992-12-13  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!ornl!rsg1.er.usgs.gov!darwin.sura.net!jvnc.net!gmd.de!Germany.EU.net!mcsun!sunic!seunet!enea!sommar
  3. From: sommar@enea.se (Erland Sommarskog)
  4. Subject: Re: Suggestion for multivalue boolean case for 9X
  5. Message-ID: <1992Dec13.152438.9929@enea.se>
  6. Organization: Enea Data AB
  7. References: <dnsurber.724028252@node_26400>
  8. Date: Sun, 13 Dec 1992 15:24:38 GMT
  9. Lines: 26
  10.  
  11. Douglas N. Surber (dnsurber@lescsse.jsc.nasa.gov) writes:
  12. >    case (cond_1, cond_2, cond_3) is
  13. >    when (true,  true,  true ) =>
  14. >        s_t_t_t;
  15. >    when (true,  true,  false) =>
  16. >        s_t_t_f;
  17. >....
  18. >    end case;
  19.  
  20. Cobol's EVALUATE works something this. It was a couple a years ago
  21. I played with it, but I recall that I had handy use of it. Particulary
  22. as you could throw in ANY for a parameter to say that for the combination
  23. of the other ones this one didn't care. (Or values that did care had been
  24. covered by previous alternatives.) Unfortunate Cobol didn't allow you
  25. to express non-contiguous values for the same alternative, which some-
  26. what limited the usefulness.
  27.  
  28. But that was Cobol. Ada has better means as already have been shown by
  29. other authors in this conferences.
  30.  
  31. >I don't know if it's too late to consider this for 9X,
  32.  
  33. Thankfully :-) it is far too late. But they scrapped my idea of chained
  34. boolean expressions (e.g. a > b > c) too, so you are not alone.
  35. -- 
  36. Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
  37.