Skip to content
Tcl Source Code Artifact [a8d5297c47]
Login

Artifact [a8d5297c47]

Artifact a8d5297c478eb79c437cae79820520c04d8ed862a6e4e4d059d4149a0eeaa66f:

Ticket change [a8d5297c47] - 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:08:01.
D 2018-01-06T19:08:01.816
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.
J login pooryorick
J mimetype text/x-fossil-wiki
K e593adf103ea27b765400ef588d49bb6f47ae7f0
U pooryorick
Z 4ec3663df49d749986ce3fb4f9220ee1