NamespaceDeleteProc not called when namespace deleted.
Closed / Fixedd614d6398931091c4d3826ea0ef8a58a97d9d129Created 13 years agoUpdated 13 years ago
Descriptionplain2013-09-25 18:26:47
The NamespaceDeleteProc will not be called when the namespace is deleted if a namespace name with trailing "::" was passed to Tcl_CreateNamespace.
Referenced by1
8e508e44f4[d614d63989] Ensure that there are no trailing colons as that causes chaos when a deleteProc is specified. check-in2013-09-25 22:54:29
dkfhtml2013-09-25 20:18:21
What is the full name (namespacePtr->fullName, a public field) of the namespace that was created? And what was the local name (namespacePtr->name)? Are you sure you're not creating a child of the namespace you think you're making with an empty local name�
stwoplain2013-09-25 20:55:33
Creating a namespace with and without a trailing "::" gives the same result. namespacePtr->fullName is "::duft::dufts::duft0" namespacePtr->name is "duft0"
dkfwiki2013-09-25 21:31:51
See here for relevant lines; the deleteProc isn't (and shouldn't be) passed to the recursive call to find/create the parent.
dkfhtml2013-09-25 22:56:15
Fix committed on 8.5 branch; I'm not committing to trunk right now because of other commits on the 8.5 branch.
dkf Ticket [d614d63989]: 3 changes
[History diff]2013-09-25 22:58:00
dkfhtml2013-09-29 19:52:04
Thanks to DGP for merging.
Log in (anonymous is fine) to add a comment.