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 Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!kanaga.switch.ch!switch.ch!newsfeed2.funet.fi!newsfeed1.funet.fi!newsfeeds.funet.fi!nntp.inet.fi!inet.fi!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Thu, 13 Aug 2009 11:34:20 +0300 From: Niklas Holsti Organization: Tidorum Ltd User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Access types as parameters References: <521c4843-d40f-4545-9e80-ca725e847090@h21g2000yqa.googlegroups.com> <8410fc60-9b8a-4f82-92fc-622a6bbe5931@i18g2000pro.googlegroups.com> <8880c3d0-a07f-4d4e-ac87-372014598576@d15g2000prc.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4a83d018$0$26303$4f793bc4@news.tdc.fi> NNTP-Posting-Host: 81.17.205.61 X-Trace: 1250152472 news.tdc.fi 26303 81.17.205.61:54059 X-Complaints-To: abuse@tdcnet.fi Xref: g2news2.google.com comp.lang.ada:7713 Date: 2009-08-13T11:34:20+03:00 List-Id: Randy Brukardt wrote: > You almost never want redispatching That's interesting as my experience is the opposite: Most of the calls between primitive methods in my code use redispatching. My tagged types tend to have a hierarchy of primitive operations, for example an Overall_Method that implements some functionality by a sequence of calls to a Detail_Method. Some derived types override Detail_Method, so the call from Overall_Method to Detail_Method must redispatch. Some other (or the same) derived types override Overall_Method, so it cannot be class-wide. Perhaps the frequency of redispatching depends on the application domain, or on personal programming style. The frequency of redispatching might me an interesting OO "metric". -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .