
20 Nov
2007
20 Nov
'07
6:48 p.m.
ntoronto@cs.byu.edu wrote:
There are two common method-calling cases, and an uncommon one. In order of expected number of occurrences, with #3 being quite low:
self.method(...)
super.method(...)
DistantParent.method(self, ...)
You're still missing an important case. I would rank them as
1. self.method(...)
2. DirectParent.method(self, ...)
3. super.method(...)
4. DistantParent.method(self, ...)
Anything that made number 2 difficult would be unacceptable.
-- Greg