summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-09-19 14:21:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-09-19 14:21:21 (GMT)
commitb9d177cec41c6ca4abcb019b38e7da7739ded8e7 (patch)
tree970f17d7a63aefbd337cf0c9314f2d241cb6eff1 /doc
parentdec3519dec2f6b56a582128de207e88db346fb7f (diff)
downloadtcl-b9d177cec41c6ca4abcb019b38e7da7739ded8e7.zip
tcl-b9d177cec41c6ca4abcb019b38e7da7739ded8e7.tar.gz
tcl-b9d177cec41c6ca4abcb019b38e7da7739ded8e7.tar.bz2
[3606943]: Corrected description of method search order.
Diffstat (limited to 'doc')
-rw-r--r--doc/next.n11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/next.n b/doc/next.n
index 0ad752a..fe7bddf 100644
--- a/doc/next.n
+++ b/doc/next.n
@@ -62,14 +62,14 @@ The method chain is cached for future use.
When constructing the method chain, method implementations are searched for in
the following order:
.IP [1]
-In the object.
-.IP [2]
In the classes mixed into the object, in class traversal order. The list of
mixins is checked in natural order.
-.IP [3]
+.IP [2]
In the classes mixed into the classes of the object, with sources of mixing in
being searched in class traversal order. Within each class, the list of mixins
is processed in natural order.
+.IP [3]
+In the object itself.
.IP [4]
In the object's class.
.IP [5]
@@ -77,7 +77,10 @@ In the superclasses of the class, following each superclass in a depth-first
fashion in the natural order of the superclass list.
.PP
Any particular method implementation always comes as \fIlate\fR in the
-resulting list of implementations as possible.
+resulting list of implementations as possible; this means that if some class,
+A, is both mixed into a class, B, and is also a superclass of B, the instances
+of B will always treat A as a superclass from the perspective of inheritance.
+This is true even when the multiple inheritance is processed indirectly.
.SS FILTERS
.PP
When an object has a list of filter names set upon it, or is an instance of a