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.3 required=5.0 tests=BAYES_00,INVALID_MSGID 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: "James S. Rogers" Subject: Re: C/C++ programmer giving Ada95 a chance -- writing an emulator. Date: 2000/03/29 Message-ID: #1/1 X-Deja-AN: 603710443 References: <38e148e2.5089627@news.shreve.net> <38E05E84.BB5507FC@gmx.net> <8bqoeh$9gs$1@nnrp1.deja.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 954303942 12.74.129.65 (Wed, 29 Mar 2000 04:25:42 GMT) Organization: AT&T Worldnet NNTP-Posting-Date: Wed, 29 Mar 2000 04:25:42 GMT Newsgroups: comp.lang.ada Date: 2000-03-29T00:00:00+00:00 List-Id: Ed Falis wrote in message ... >I guess what I don't understand about this conversation is why noone has >proposed the use of tagged types instead of manual procedure dispatching. Although the original author of this thread used the term dispatching, his description of what he wants does not really want dispatching. He wants to execute a procedure associated with a particular opcode value, not based upon a separate type. He also did not want to use any form of case statement to determine the procedure to execute. This rules out the use of a discriminated record. The approach of a manually constructed dispatching table is valid in either C++ or Ada. The reason it is used in C++ is that he is not really using virtual functions there either. The C++ vtable will not work for him. Show me how you will design a hierarchy of tagged types differentiated only by values of discrete type. I have not yet seen that trick. Jim Rogers