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