summaryrefslogtreecommitdiffstats
path: root/doc/next.n
diff options
context:
space:
mode:
Diffstat (limited to 'doc/next.n')
-rw-r--r--doc/next.n6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/next.n b/doc/next.n
index 898b79b..1240c1b 100644
--- a/doc/next.n
+++ b/doc/next.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: next.n,v 1.2 2008/06/19 21:29:03 dkf Exp $
+'\" RCS: @(#) $Id: next.n,v 1.3 2008/10/17 10:22:25 dkf Exp $
'\"
.so man.macros
.TH next n 0.1 TclOO "TclOO Commands"
@@ -94,6 +94,7 @@ invoking either constructors or destructors.
.PP
This example demonstrates how to use the \fBnext\fR command to call the
(super)class's implementation of a method. The script:
+.PP
.CS
oo::class create theSuperclass {
method example {args} {
@@ -117,7 +118,9 @@ oo::define obj method example args {
}
obj example 1 2 3
.CE
+.PP
prints the following:
+.PP
.CS
per-object method, args = 1 2 3
before chaining from subclass, args = x 1 2 3 y
@@ -188,7 +191,6 @@ puts [demo compute 1 2 3] \fI\(-> prints "7" after delay\fR
oo::class(n), oo::define(n), oo::object(n), self(n)
.SH KEYWORDS
call, method, method chain
-
.\" Local variables:
.\" mode: nroff
.\" fill-column: 78