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,7a180be12347b9d3 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,7a180be12347b9d3 X-Google-Attributes: gid1108a1,public X-Google-ArrivalTime: 2002-02-08 00:54:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: dmitry@elros.cbb-automation.de (Dmitry A. Kazakov) Newsgroups: comp.lang.ada,comp.object Subject: Re: Merits of re-dispatching [LONG] Date: Fri, 08 Feb 2002 08:56:49 GMT Message-ID: <3c6391e5.2141421@News.CIS.DFN.DE> References: <3c62524f.93369796@News.CIS.DFN.DE> <3c630dcf.351108035@news.cis.dfn.de> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) X-Trace: fu-berlin.de 1013158494 45135539 212.79.194.111 (16 [77047]) X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:19756 comp.object:33647 Date: 2002-02-08T08:56:49+00:00 List-Id: On Thu, 07 Feb 2002 23:40:42 GMT, nickroberts@ukf.net (Nick Roberts) wrote: >On Thu, 07 Feb 2002 10:26:00 GMT, dmitry@elros.cbb-automation.de (Dmitry A. >Kazakov) wrote: > >>Hi! >> >>C++ and Ada 95 support re-dispatching, which I think is inherently >>unsafe. Consider the following: >> >>type A is new Ada.Finalization.Limited_Controlled with ... >>procedure Foo (Object : A); >>procedure Finalize (Object : in out A) ; >> >>Now let AA derived from A override Foo and Finalize: >> >>type AA is new A with record >> ... -- Some components, which may use components of A >>end record; > >What do you mean "which may use components of A"? It was a bad wording , I admit. Should be "some components, which may depend on components of A". Regards, Dmitry Kazakov