Skip to content
Tcl Source Code Artifact [c2e788052b]
Login

Artifact [c2e788052b]

Artifact c2e788052b0604ee6142710227bd19f79f8eae9a69c74ba46cd61e416ae3b519:

Ticket change [c2e788052b] - Ticket [e593adf103ea27b7|e593adf103] <i>Resources of a namespace are still available after the namespace is deleted.</i> status still Open with 3 other changes by pooryorick on 2018-01-06 19:17:26.
D 2018-01-06T19:17:26.114
J comment The\sfollowing\sscript\sdoes\snot\sfail:\r\n\r\n<code><verbatim>\r\nnamespace\seval\sn1\s{\r\n\s\s\s\sproc\sp1\s{}\s{\r\n\s\s\s\s\s\s\s\sputs\shello\r\n\s\s\s\s}\r\n\s\s\s\snamespace\sdelete\s[namespace\scurrent]\s\r\n\s\s\s\sp1\r\n}\r\n</verbatim></code>\r\n\r\nWhile\sthis\sis\sknown\sand\sdocumented,\sit's\snot\sideal.\s\sThe\scurrent\sbehaviour\sis\sprobably\sa\sconcession\sto\sthe\ssubtleties\sof\sresource\scleanup,\sparticularly\swhere\sobject\ssystems\sbuilt\son\snamespaces\sare\sinvolved.\r\n\r\nIn\scommit\s[3825265b17],\snamespace\scleanup\sroutines\sare\ssimplified\sand\r\nrationalized.\s\sOnce\sa\snamespace\sis\sdeleted,\sthe\sglobal\snamespace\sbecomes\sthe\r\ncurrent\snamespace.\s\sA\snamespace\sis\sconsidered\sdeleted\sonce\sall\straces\sand\r\nroutines\sassociated\swith\sthe\sdeletion\sare\scomplete.\s\sUntil\sthat\stime,\sthe\r\nnamespace\sremains\savailable\sand\sfully\sfunctional.\r\n\r\nOne\seffect\sof\sthese\schanges\sis\sthat\sin\sa\scoroutine\s<code>yield</code>\sand\r\n<code>yieldto</code>\swork\sas\sthey\snormally\sdo\seven\safter\sthe\snamespace\sof\sthe\r\nroutine\sthat\sprovied\slevel\s1\sfor\sthe\scoroutine\sis\sdeleted.\r\n\r\nThe\s<code>activationCount</code>\smember\sof\sthe\s<code>Namespace</code>\sstructure\r\nhas\sbeen\sdeleted,\ssince\sthere\sare\sno\slonger\s"phantom"\snamespaces\savailable\sat\r\nother\slevels\swhose\scurrent\snamespace\swas\sthe\sdeleted.\sInstead,\sthe\scurrent\r\nnamespace\sfor\sthose\slevels\sis\sthe\sglobal\snamespace.
J login pooryorick
J mimetype text/plain
K e593adf103ea27b765400ef588d49bb6f47ae7f0
U pooryorick
Z d8deb5d75568ab54b57eeb943c0108df