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=0.7 required=5.0 tests=BAYES_00,INVALID_MSGID, PDS_TONAME_EQ_TOLOCAL_SHORT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ea19776e3073a96 X-Google-Attributes: gid103376,public From: Geoff Bull Subject: Re: C/C++ programmer giving Ada95 a chance -- writing an emulator. Date: 2000/03/30 Message-ID: <38E2E979.3D1A95DE@research.canon.com.au>#1/1 X-Deja-AN: 604195086 Content-Transfer-Encoding: 7bit References: <38e148e2.5089627@news.shreve.net> To: jross X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@research.canon.com.au X-Trace: cass.research.canon.com.au 954394973 23212 203.12.174.227 (30 Mar 2000 05:42:53 GMT) Organization: Canon Information Systems Research Australia Mime-Version: 1.0 NNTP-Posting-Date: 30 Mar 2000 05:42:53 GMT Newsgroups: comp.lang.ada Date: 2000-03-30T05:42:53+00:00 List-Id: jross wrote: > This is very efficient C++ code (could have been just as easy in plain > old C without the class encapsulation?) How would you do this in Ada > without using a Case Statement? Actually I would probably use case statement! After a little bit of experimentation I found the case statement is about as fast as any other method. Or do you have some other reason for not wanting to use a case statemnt? Cheers Geoff