From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1e4bb63e08046e1a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-28 12:05:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail From: Wes Groleau User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: In case statment? (was Re: is exception when others => null; smart?) References: <3DB8204B.2080804@attbi.com> <3DB89B83.2060609@acm.org> <1uidnV-D27onySGgXTWcqA@comcast.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 28 Oct 2002 15:05:27 -0500 NNTP-Posting-Host: 151.168.133.155 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1035835528 151.168.133.155 (Mon, 28 Oct 2002 14:05:28 CST) NNTP-Posting-Date: Mon, 28 Oct 2002 14:05:28 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:30191 Date: 2002-10-28T15:05:27-05:00 List-Id: Preben Randhol wrote: > Ze Administrator wrote: > >>Not easy to do, but it would be really cool >>if you could generate >> >> case Number is >> >> when One => >> when Two => >> when Three => >>etc. >> >>In other words, if the tool could be smart enough >>to find and parse the type of Number and provide >>all the slots. > > Not easy, besides what if you wanted: > > case Numer is > when One | Two => > -- > when Three => > -- Not easy--that's what I said. As for the above, in most editors, I would highlight => when and hit the vert bar key. Much easier than typing the whole thing.