summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2017-11-17 23:42:16 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2017-11-17 23:42:16 (GMT)
commit42c80667fd7da57b65d92fee77d2b954fba95970 (patch)
tree840ffc3758b8a4e4bf889115af1c741cbda63ead /generic/tclProc.c
parent3c942c50d91bc8ea58c64065922babf397943e8f (diff)
downloadtcl-42c80667fd7da57b65d92fee77d2b954fba95970.zip
tcl-42c80667fd7da57b65d92fee77d2b954fba95970.tar.gz
tcl-42c80667fd7da57b65d92fee77d2b954fba95970.tar.bz2
Lift the restriction on command names names that begin with ":".
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index f5f2b03..3c30623 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -158,14 +158,6 @@ Tcl_ProcObjCmd(
Tcl_SetErrorCode(interp, "TCL", "VALUE", "COMMAND", NULL);
return TCL_ERROR;
}
- if ((nsPtr != iPtr->globalNsPtr)
- && (procName != NULL) && (procName[0] == ':')) {
- Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't create procedure \"%s\" in non-global namespace with"
- " name starting with \":\"", procName));
- Tcl_SetErrorCode(interp, "TCL", "VALUE", "COMMAND", NULL);
- return TCL_ERROR;
- }
/*
* Create the data structure to represent the procedure.