diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-30 21:46:02 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-30 21:46:02 (GMT) |
commit | 9823630f3a0f827e324e3475f6819d4fbf619af1 (patch) | |
tree | 322653fa8bc2d37cd3eff26ff1ade5bb912173b0 /doc/namespace.n | |
parent | 9ba02fd68a62a09d814b9a34225fcdebf48d3c32 (diff) | |
download | tcl-9823630f3a0f827e324e3475f6819d4fbf619af1.zip tcl-9823630f3a0f827e324e3475f6819d4fbf619af1.tar.gz tcl-9823630f3a0f827e324e3475f6819d4fbf619af1.tar.bz2 |
Eliminate misuse of .br
Diffstat (limited to 'doc/namespace.n')
-rw-r--r-- | doc/namespace.n | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/namespace.n b/doc/namespace.n index 8531316..2e2f07a 100644 --- a/doc/namespace.n +++ b/doc/namespace.n @@ -7,7 +7,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: namespace.n,v 1.26 2007/10/30 14:23:44 dkf Exp $ +'\" RCS: @(#) $Id: namespace.n,v 1.27 2007/10/30 21:46:02 dkf Exp $ '\" .so man.macros .TH namespace n 8.5 Tcl "Tcl Built-In Commands" @@ -103,11 +103,12 @@ If more than one \fIarg\fR argument is specified, the arguments are concatenated together with a space between each one in the same fashion as the \fBeval\fR command, and the result is evaluated. -.br -.sp +.RS +.PP If \fInamespace\fR has leading namespace qualifiers and any leading namespaces do not exist, they are automatically created. +.RE .TP \fBnamespace exists\fR \fInamespace\fR Returns \fB1\fR if \fInamespace\fR is a valid namespace in the current @@ -190,12 +191,18 @@ The \fBnamespace inscope\fR command is much like the \fBnamespace eval\fR command except that the \fInamespace\fR must already exist, and \fBnamespace inscope\fR appends additional \fIarg\fRs as proper list elements. -.br +.RS +.PP +.CS \fBnamespace inscope ::foo $script $x $y $z\fR +.CE is equivalent to +.CS \fBnamespace eval ::foo [concat $script [list $x $y $z]]\fR +.CE thus additional arguments will not undergo a second round of substitution, as is the case with \fBnamespace eval\fR. +.RE .TP \fBnamespace origin \fIcommand\fR Returns the fully-qualified name of the original command |