summaryrefslogtreecommitdiffstats
path: root/doc/variable.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-27 14:43:54 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-27 14:43:54 (GMT)
commitc42f7214cddeff6533e5ed52c45ab2c9471382af (patch)
treef9e6f7072c0981606df62c16c7a7d9478dfe2b99 /doc/variable.n
parentf2710bf0bb0c6ace5d1bc4f424b400537ffdb21c (diff)
downloadtcl-c42f7214cddeff6533e5ed52c45ab2c9471382af.zip
tcl-c42f7214cddeff6533e5ed52c45ab2c9471382af.tar.gz
tcl-c42f7214cddeff6533e5ed52c45ab2c9471382af.tar.bz2
Yet more small fixes
Diffstat (limited to 'doc/variable.n')
-rw-r--r--doc/variable.n10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/variable.n b/doc/variable.n
index 2f13edd..1676913 100644
--- a/doc/variable.n
+++ b/doc/variable.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: variable.n,v 1.5 2004/05/27 22:13:45 dkf Exp $
+'\" RCS: @(#) $Id: variable.n,v 1.6 2004/10/27 14:43:54 dkf Exp $
'\"
.so man.macros
.TH variable n 8.0 Tcl "Tcl Built-In Commands"
@@ -62,14 +62,14 @@ elements within the array can be set using ordinary
Create a variable in a namespace:
.CS
namespace eval foo {
- variable bar 12345
+ \fBvariable\fR bar 12345
}
.CE
.PP
Create an array in a namespace:
.CS
namespace eval someNS {
- variable someAry
+ \fBvariable\fR someAry
array set someAry {
someName someValue
otherName otherValue
@@ -82,11 +82,11 @@ Access variables in namespaces from a procedure:
namespace eval foo {
proc spong {} {
# Variable in this namespace
- variable bar
+ \fBvariable\fR bar
puts "bar is $bar"
# Variable in another namespace
- variable ::someNS::someAry
+ \fBvariable\fR ::someNS::someAry
parray someAry
}
}