diff options
author | hobbs <hobbs@noemail.net> | 2000-05-11 00:17:28 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-05-11 00:17:28 (GMT) |
commit | 62a0598c1d0d4f788d9d8a6b065e53d5d88873bb (patch) | |
tree | fd6e521dcdcb8b122084bd5461cc4ab5faff7a31 /doc/namespace.n | |
parent | 3a7ad7cab756bf3e6ed216b1ea07afb6ccd728bb (diff) | |
download | tcl-62a0598c1d0d4f788d9d8a6b065e53d5d88873bb.zip tcl-62a0598c1d0d4f788d9d8a6b065e53d5d88873bb.tar.gz tcl-62a0598c1d0d4f788d9d8a6b065e53d5d88873bb.tar.bz2 |
* doc/namespace.n:
* tests/namespace.test:
* generic/tclNamesp.c (Tcl_NamespaceObjCmd): added 'namespace
exists' command. [Bug: 4665]
FossilOrigin-Name: 1570dc22014c7bd9eb11da3946ddec89b2227e4f
Diffstat (limited to 'doc/namespace.n')
-rw-r--r-- | doc/namespace.n | 7 |
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 |