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-Thread: 103376,29d8139471e3f53e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Preventing type extensions Date: Mon, 13 Sep 2010 23:13:16 +0200 Organization: Adalog Message-ID: References: <87iq2bfenl.fsf@mid.deneb.enyo.de> <874odv9npv.fsf@ludovic-brenta.org> <87y6b7cedd.fsf@mid.deneb.enyo.de> <66a3704c-54f9-4f04-8860-aa12f516134b@t3g2000vbb.googlegroups.com> <87d3sib44t.fsf@mid.deneb.enyo.de> <134q4k2ly2pf4$.17nlv1q6q5ivo.dlg@40tude.net> <4c8dec8e$0$6990$9b4e6d93@newsspool4.arcor-online.net> <8f6cceFrv2U1@mid.individual.net> <135a7dc9-3943-45e4-884b-3cc6bce3db0a@q18g2000vbm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 13 Sep 2010 21:13:16 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="z/xN1DBP8RUb+r9ug/i0hg"; logging-data="17017"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19193H04em+NdmZ1vf0VlQ7" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <135a7dc9-3943-45e4-884b-3cc6bce3db0a@q18g2000vbm.googlegroups.com> Cancel-Lock: sha1:1lqF2IDphowc732E13uzeGnhG8o= Xref: g2news1.google.com comp.lang.ada:14064 Date: 2010-09-13T23:13:16+02:00 List-Id: Le 13/09/2010 14:55, Cyrille a �crit : >> Some time ago on c.l.a. we had a long discussion on the goodness or >> badness of re-dispatch, without coming to an agreement. I don't want to >> repeat that discussion, just to point out, again, that Dmitry's opinion >> is not universal. > > Far from it indeed. In order to follow the "simple dispatch" rule as > described in OOTiA, one need to (almost) systematically re-dispatch. > It seems to me that the vulnerabilities associated with not following > the simple dispatch rule are significant: it is difficult to guarantee > the integrity of the objects that are manipulated as soon as view > conversions are used or some primitives ops are inherited while others > are overridden. > I understand the arguments in the other direction (against redispatch) > but they do not look so compelling to me, especially in a context > where LSP is understood and verified. These arguments make sense for languages without the notion of class-wide types. However, I think that redispatching can be replaced with class-wide operations, with great benefits from the POV of testing. Cyril, will you come to the workshop? That would be very valuable. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr