diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-07-24 08:23:00 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-07-24 08:23:00 (GMT) |
commit | 8569a517d4490cb136c99a73fb036eef3d05bd25 (patch) | |
tree | ed214fc71bb32db5221f9d64be8a23ab6070f3a9 /doc | |
parent | 2bab3ed49e96d767dafcf287960de0598225dfa1 (diff) | |
download | tcl-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')
-rw-r--r-- | doc/self.n | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 . |