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 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 05:19:44 PST Date: Mon, 28 Oct 2002 20:32:36 +0800 From: Adrian Hoe User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us 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 NNTP-Posting-Host: akh-131-95.tm.net.my X-Original-NNTP-Posting-Host: akh-131-95.tm.net.my Message-ID: <3dbd2bee_1@news.tm.net.my> X-Trace: news.tm.net.my 1035807726 akh-131-95.tm.net.my (28 Oct 2002 20:22:06 +0800) Organization: TMnet Malaysia Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:30186 Date: 2002-10-28T20:32:36+08:00 List-Id: Ze Administrator wrote: > >> Now my next question is should a case statment be: >> >> case Number is >> >> when others => >> null; >> end case; >> >> Or simply: >> >> case Number is >> >> end case; > > > 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. > This will be difficult and can have hundreds of possiblities, who knows? But if the editor is interactive enough when it is asked to generate case, it can be considered. -- type Dmitry is new Adrian; -- Adrian Hoe -- http://adrianhoe.com -- Remove *nospam* to email