home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / scheme / 2190 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1005 b   |  27 lines

  1. Newsgroups: comp.lang.scheme
  2. Path: sparky!uunet!snorkelwacker.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  3. From: jeff@aiai.edinburgh.ac.UK (Jeff Dalton)
  4. Subject: Re: What I learned from building Dylan/Thomas
  5. Message-ID: <26066.9209151720@aiai.ed.ac.uk>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Organization: The Internet
  8. Date: Tue, 15 Sep 1992 17:20:02 GMT
  9. Lines: 16
  10.  
  11. >   sorted-applicable-methods finds the applicable methods and sorts
  12. >     them from most- to least-specific.  We used a topological sort of
  13. >     all of the classes in the system.  
  14.  
  15. What makes this possible?  (I don't remember enough about Dylan to
  16. say.)  Anyway, it's not possible in CLOS.  For instance, I can define
  17.  
  18.   (defclass a (r s) ...)
  19.   (defclass b (s r) ...)
  20.  
  21. In the class precedence list of A, R comes before S; but in the
  22. precedence list for B, S comes before R.  Consequently, for an
  23. instance of A, R methods are more specific than S methods; but
  24. for an instance of B it's the other way 'round.
  25.  
  26. -- jd
  27.