summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-05-11 00:17:29 (GMT)
committerhobbs <hobbs>2000-05-11 00:17:29 (GMT)
commit18a7211a6c01bc759bfa2dd32b7155206b356885 (patch)
treefd6e521dcdcb8b122084bd5461cc4ab5faff7a31 /doc
parent49819cda899108c1cfefcbbbc112bfb30ba8a065 (diff)
downloadtcl-18a7211a6c01bc759bfa2dd32b7155206b356885.zip
tcl-18a7211a6c01bc759bfa2dd32b7155206b356885.tar.gz
tcl-18a7211a6c01bc759bfa2dd32b7155206b356885.tar.bz2
* doc/namespace.n:
* tests/namespace.test: * generic/tclNamesp.c (Tcl_NamespaceObjCmd): added 'namespace exists' command. [Bug: 4665]
Diffstat (limited to 'doc')
-rw-r--r--doc/namespace.n7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/namespace.n b/doc/namespace.n
index dea7265..31b3c79 100644
--- a/doc/namespace.n
+++ b/doc/namespace.n
@@ -1,11 +1,12 @@
'\"
'\" Copyright (c) 1993-1997 Bell Labs Innovations for Lucent Technologies
'\" Copyright (c) 1997 Sun Microsystems, Inc.
+'\" Copyright (c) 2000 Scriptics Corporation.
'\"
'\" 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.5 2000/02/10 10:21:02 hobbs Exp $
+'\" RCS: @(#) $Id: namespace.n,v 1.6 2000/05/11 00:17:29 hobbs Exp $
'\"
.so man.macros
.TH namespace n 8.0 Tcl "Tcl Built-In Commands"
@@ -100,6 +101,10 @@ If \fInamespace\fR has leading namespace qualifiers
and any leading namespaces do not exist,
they are automatically created.
.TP
+\fBnamespace exists\fR \fInamespace\fR
+Returns \fB1\fR if \fInamespace\fR is a valid namespace in the current
+context, returns \fB0\fR otherwise.
+.TP
\fBnamespace export \fR?\-\fBclear\fR? ?\fIpattern pattern ...\fR?
Specifies which commands are exported from a namespace.
The exported commands are those that can be later imported