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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2ea02452876a15e1 X-Google-Attributes: gid103376,public X-Google-Thread: fac41,c52c30d32b866eae X-Google-Attributes: gidfac41,public X-Google-Thread: 1108a1,c52c30d32b866eae X-Google-Attributes: gid1108a1,public From: Richard Riehle Subject: Re: Real OO Date: 1996/05/09 Message-ID: #1/1 X-Deja-AN: 154027362 references: to: Don Harrison content-type: TEXT/PLAIN; charset=US-ASCII organization: National University, San Diego mime-version: 1.0 newsgroups: comp.lang.eiffel,comp.lang.ada,comp.object Date: 1996-05-09T00:00:00+00:00 List-Id: On Thu, 9 May 1996, Don Harrison wrote: > Juergen Schlegelmilch writes: > > :Yes, dispatch failure for multiple dispatch indicates broken polymorphism. > :The design of inheritance hierarchies is often not seen in the light of > :the Liskov Substitution Principle, > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Could you (or somone) explain what this is? Sorry, I'm a bit ignorant. You might want to look at a paper by Liskov, "Subtype Hierarchy and Implementation Hierarchy," Proceedings of the ACM Conference on Object-Oriented Programming, 1987 Though the substitutability principle is often attributed to Liskov, it is also given treatment in a paper from Wegner and Zdonic, "Inheritance as an Incremental Modification Mechanism" published in the Proceedings of the European Conference on Object-Oriented Programming, 1988. An important overview of this subject is Cardelli and Wegner, "On Understanding Types, Data Abstraction, and Polymorphism," ACM Computing Surveys, Number 17, 1985. -- ================================================================= All that academic stuff aside, the substitutability rule is quite useful when trying to determine whether one is organizing a set of objects by classification or by some other mechanism. In particular, there is a point-of-view which says one should always apply the substitutability principle when attempting multiple inheritance. Richard Riehle