Languages that support both inheritance and nesting of declarations define method lookup to first climb up the inheritance hierarchy and then recurse up the lexical hierarchy. We discuss weaknesses of this approach, present alternatives, and illustrate a preferred semantics as implemented in Newspeak, a new language in the Smalltalk [GR83] family.
Gilad Bracha, On the Interaction of Method Lookup and Scope with Inheritance and Nesting (pdf)
... a standard example - a class representing points in the plane
Object Initialization and Construction Revisited
Recent comments
1 week 4 days ago
1 week 4 days ago
1 week 4 days ago
7 weeks 4 days ago
47 weeks 6 days ago
47 weeks 6 days ago
47 weeks 6 days ago
1 year 17 weeks ago
1 year 22 weeks ago
1 year 23 weeks ago