home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / eiffel / 1321 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.2 KB

  1. Path: sparky!uunet!mcsun!uknet!cf-cm!ted
  2. From: Ted.W.Lawson@cm.cf.ac.uk (Ted Lawson)
  3. Newsgroups: comp.lang.eiffel
  4. Subject: Re: "Rename" considered hazardous
  5. Message-ID: <1992Nov23.210505.14436@cm.cf.ac.uk>
  6. Date: 23 Nov 92 21:05:03 GMT
  7. References: <1992Nov23.135527.7035@th-ilmenau.RZ.TH-Ilmenau.DE>
  8. Sender: news@cm.cf.ac.uk (Network News System)
  9. Organization: University of Wales College of Cardiff
  10. Lines: 19
  11.  
  12. In article <1992Nov23.135527.7035@th-ilmenau.RZ.TH-Ilmenau.DE> huebner@PrakInf.TH-Ilmenau.DE (Huebner) writes:
  13. >
  14. >Handling the problem of name conflicts arising from multiple inheritance 
  15. >by renaming could be a nice solution. But it seems that there should be
  16. >some restrictions to ensure the reliability of the produced software.
  17.  
  18.     (original example omitted for brevity)
  19.  
  20. >    z.foo(x);   -- o.k.
  21. >    z.foo(y);   -- Error: message "f" not understood by object of Typ B
  22.  
  23. "It is important to understand that renaming does not change any of the
  24. inherited features, but simply changes the names under which those features
  25. will be known by the _clients_ and _descendents_ of a class." [ETL p 83]
  26.  
  27. The above error doesn't happen because C is neither a client nor a descendant
  28. of B.
  29.  
  30. Ted
  31.