Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[namespace delete ::] regression

Closed / Fixed1655305fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-02-08 15:34:28
The following script:

interp create slave
slave hide info
slave eval {proc foo {} {
    namespace delete ::
}}
slave eval foo
slave invokehidden info commands

produces the expected empty result
in Tcl 8.4.14.

In Tcl HEAD, a long list of
built-in commands is reported.
dgpplain2007-02-08 23:00:23
Logged In: YES 
user_id=80530
Originator: YES


Tcl 8.5a5 is working fine,
so this is a recent bug.
dgpplain2007-02-09 00:27:22
Logged In: YES 
user_id=80530
Originator: YES


The commits on 2006-10-23
are to blame.
dgpplain2007-02-09 00:42:33
Logged In: YES 
user_id=80530
Originator: YES


Patch 1577278.  The new
logic in Tcl_DeleteNamespace()
is broken.
dgpplain2007-02-09 01:08:01
File Added - 215095: 1655305.patch

Logged In: YES 
user_id=80530
Originator: YES


Here's a patch.  Review invited.
File Added: 1655305.patch
dgpplain2007-02-09 01:43:47
Logged In: YES 
user_id=80530
Originator: YES


Patch committed.
Log in (anonymous is fine) to add a comment.

Attachments: