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,a04e500922557815 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-16 12:05:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stueberl.de!news-peer.gradwell.net!easynet-melon!easynet.net!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Need advice: Enumerate or not Date: Thu, 16 May 2002 19:05:12 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3CE2540C.1030404@worldnet.att.net> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1021575912 18173 129.241.83.82 (16 May 2002 19:05:12 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 16 May 2002 19:05:12 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:24221 Date: 2002-05-16T19:05:12+00:00 List-Id: On 16 May 2002 09:03:25 -0400, Stephen Leake wrote: > No, the child package where the actual operation is defined does _not_ > need to be visible for dispatching to happen. That is crucial to the > dispatching design; the top level Update procedure can be written with > _no_ knowledge of what procedures are actually dispatched to. But as I said these objects are in different packages which are not child packages of a package. Doe they need to be? > This is done by making the root operation abstract; then the compiler > ensures that each derived type supplies an update function. Yes I have done this in my Common_Dialog package as there I have a "root" package which has an abstract type that the child packages derive. In my other case I don't have that. -- Preben