summaryrefslogtreecommitdiffstats
path: root/doc/my.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-10-17 10:22:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-10-17 10:22:24 (GMT)
commit842e3ff91428c72a2ce0d4df4889778af82f4b12 (patch)
tree5a94240e321022019f593f6bd712833ab12138c6 /doc/my.n
parent8b464633a0f2df93912ad25af65a5724cd643da2 (diff)
downloadtcl-842e3ff91428c72a2ce0d4df4889778af82f4b12.zip
tcl-842e3ff91428c72a2ce0d4df4889778af82f4b12.tar.gz
tcl-842e3ff91428c72a2ce0d4df4889778af82f4b12.tar.bz2
Improve clarity of formatting.
Diffstat (limited to 'doc/my.n')
-rw-r--r--doc/my.n6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/my.n b/doc/my.n
index 75d7bac..fed03d6 100644
--- a/doc/my.n
+++ b/doc/my.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: my.n,v 1.1 2008/05/31 11:42:13 dkf Exp $
+'\" RCS: @(#) $Id: my.n,v 1.2 2008/10/17 10:22:25 dkf Exp $
'\"
.so man.macros
.TH my n 0.1 TclOO "TclOO Commands"
@@ -19,8 +19,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
@@ -31,8 +31,10 @@ method is invoked is always the one that is the current context of the method
.PP
Each object has its own \fBmy\fR command, contained in its unique 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:
+.PP
.CS
oo::class create c {
method count {} {