summaryrefslogtreecommitdiffstats
path: root/doc/my.n
diff options
context:
space:
mode:
Diffstat (limited to 'doc/my.n')
-rw-r--r--doc/my.n12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/my.n b/doc/my.n
index 75d7bac..b91bc9a0 100644
--- a/doc/my.n
+++ b/doc/my.n
@@ -4,10 +4,8 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: my.n,v 1.1 2008/05/31 11:42:13 dkf Exp $
-'\"
-.so man.macros
.TH my n 0.1 TclOO "TclOO Commands"
+.so man.macros
.BS
'\" Note: do not modify the .SH NAME line immediately below!
.SH NAME
@@ -19,8 +17,8 @@ package require TclOO
\fBmy\fI methodName\fR ?\fIarg ...\fR?
.fi
.BE
-
.SH DESCRIPTION
+.PP
The \fBmy\fR command is used to allow methods of objects to invoke any method
of the object (or its class). In particular, the set of valid values for
\fImethodName\fR is the set of all methods supported by an object and its
@@ -29,10 +27,12 @@ method is invoked is always the one that is the current context of the method
(i.e. the object that is returned by \fBself object\fR) from which the
\fBmy\fR command is invoked.
.PP
-Each object has its own \fBmy\fR command, contained in its unique namespace.
+Each object has its own \fBmy\fR command, contained in its instance namespace.
.SH EXAMPLES
+.PP
This example shows basic use of \fBmy\fR to use the \fBvariables\fR method of
-the \fBoo::object\fR class, which is not publically visible by default:
+the \fBoo::object\fR class, which is not publicly visible by default:
+.PP
.CS
oo::class create c {
method count {} {