Hacker News new | ask | show | jobs
by alok-g 5141 days ago
This does not seem to explain it completely. Even with "first search by name..." rule, shouldn't the order be:

1. Find "all" the functions accessible bearing the same name. This would include functions available from the base classes.

2. Now match parameters

Seems like the order actually used is:

1. Find the function by name in the specific class (not including base classes)

2. If found, go to 4.

3. Include functions from the next base class (end if no more) and match by name only. Go to 2.

4. Try matching by name.