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, MSGID_RANDY 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: Robert Dewar Subject: Re: C/C++ programmer giving Ada95 a chance -- writing an emulator. Date: 2000/04/01 Message-ID: <8c5015$hda$1@nnrp1.deja.com>#1/1 X-Deja-AN: 605247688 References: <38e148e2.5089627@news.shreve.net> <38E05E84.BB5507FC@gmx.net> <8bqoeh$9gs$1@nnrp1.deja.com> <38E2DC8A.45AE7226@research.canon.com.au> X-Http-Proxy: 1.0 x33.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Apr 01 14:10:52 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-01T00:00:00+00:00 List-Id: In article <38E2DC8A.45AE7226@research.canon.com.au>, Geoff Bull wrote: > I don't think it is any clearer or better than my original. I disagree, the use of general access-to-procedure values is far less reliable, and has far less constrained semantics. The use of explicit access-to-procedure values suffers from much of the same problems as gotos. Just as we prefer to replace a network of gotos with a case statement, we prefer to replace the use of access-to-procedure with dynamic dispatching where possible for many reasons. As you note, there is very rarely any significant penalty for this and this transformation is in fact a very nice example. The version with tagged types is a little more complex semantically, and that does have to be taken into consideration. Sent via Deja.com http://www.deja.com/ Before you buy.