summaryrefslogtreecommitdiffstats
path: root/doc/self.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-07-24 08:23:00 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-07-24 08:23:00 (GMT)
commit8569a517d4490cb136c99a73fb036eef3d05bd25 (patch)
treeed214fc71bb32db5221f9d64be8a23ab6070f3a9 /doc/self.n
parent2bab3ed49e96d767dafcf287960de0598225dfa1 (diff)
downloadtcl-8569a517d4490cb136c99a73fb036eef3d05bd25.zip
tcl-8569a517d4490cb136c99a73fb036eef3d05bd25.tar.gz
tcl-8569a517d4490cb136c99a73fb036eef3d05bd25.tar.bz2
Made it clearer what most people want instead of [self class].
Diffstat (limited to 'doc/self.n')
-rw-r--r--doc/self.n11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/self.n b/doc/self.n
index a82be96..a616d30 100644
--- a/doc/self.n
+++ b/doc/self.n
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: self.n,v 1.3 2009/03/24 10:46:04 dkf Exp $
+'\" RCS: @(#) $Id: self.n,v 1.4 2009/07/24 08:23:00 dkf Exp $
'\"
.so man.macros
.TH self n 0.1 TclOO "TclOO Commands"
@@ -43,6 +43,15 @@ This returns the name of the class that the current method was defined within.
Note that this will change as the chain of method implementations is traversed
with \fBnext\fR, and that if the method was defined on an object then this
will fail.
+.RS
+.PP
+If you want the class of the current object, you need to use this other
+construct:
+.PP
+.CS
+info object class [\fBself object\fR]
+.CE
+.RE
.TP
\fBself filter\fR
.