Article View: comp.lang.eiffel
Article #1629Multiple Inheritance and Redefinition
From: Dave Berry
Date: Thu, 08 Mar 1990 18:46
Date: Thu, 08 Mar 1990 18:46
18 lines
1244 bytes
1244 bytes
OOSC says that if a class inherits a feature named f from two parents, then at least one must be renamed (unless they refer to the same feature in a common ancestor). Why isn't it legal for the class to redefine that name? Obviously the types of the new definition would have to conform to the types of both originals. I suppose that the features in the parents would have to have compatible preconditions and postconditions, and this couldn't be guaranteed by the language. But should the language reject the possibility of redefinition in the cases when it would be OK? Comments? Dave Berry, LFCS, Edinburgh Uni. db%lfcs.ed.ac.uk@nsfnet-relay.ac.uk "The thought of someone sharing one's own preferences without also sharing one's aversions strikes most people as utterly inconceivable." - C. A. Tripp.
Technical Details
Message-ID:
<2711@castle.ed.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!edcastle!lfcs!dbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!edcastle!lfcs!db From: db@lfcs.ed.ac.uk (Dave Berry) Newsgroups: comp.lang.eiffel Subject: Multiple Inheritance and Redefinition Message-ID: <2711@castle.ed.ac.uk> Date: 8 Mar 90 18:46:18 GMT Reply-To: db@lfcs.ed.ac.uk (Dave Berry) Organization: Laboratory for the Foundations of Computer Science, Edinburgh U Lines: 18