| User loginNavigation | Experience with non-linearized superclasses?Many OO languages with multiple inheritance linearize superclasses, to remove ambiguity. E.g., Dylan and Python both use the C3 algorithm. Craig Chambers (in the languages Cecil and Diesel) argues against linearization (page 30 in the Cecil spec), and prefers a very simple, so-called "distance metric": a (method from a) class A only overrides another class B, if A is a subclass of B. Order of classes in the superclasses list of a class is ignored. Programmers may have to add methods for disambiguation. I find Chambers' approach elegant, but I wonder how it stacks up in practice. In case there are any Cecil/Diesel users, or users of other languages without linearization, or anyone with an opinion on this topic, I'd love to hear from you. By Manuel J. Simoni at 2011-02-14 12:02 | LtU Forum | previous forum topic | next forum topic | other blogs | 4399 reads | Browse archives
 Active forum topics | 
Recent comments
2 days 18 hours ago
2 days 18 hours ago
2 days 18 hours ago
3 weeks 3 days ago
4 weeks 1 day ago
4 weeks 2 days ago
4 weeks 3 days ago
4 weeks 3 days ago
4 weeks 3 days ago
4 weeks 6 days ago