Tcl Library Source Code

View Ticket
Login
Ticket UUID: 1005377
Title: struct::stack name collisions
Type: Bug Version: None
Submitter: duquette Created on: 2004-08-08 04:13:35
Subsystem: struct :: stack Assigned To: andreas_kupries
Priority: 9 Immediate Severity:
Status: Open Last Modified: 2004-08-10 02:32:48
Resolution: None Closed By:
    Closed on:
Description:
The command ::struct::stack generates a new stack object with an 
automatically generated name. If the automatically generated 
name is the name of an existing command, ::struct::stack throws 
an error instead of automatically generating a unique name.

The only way to protect against this is to specify the name 
explicitly, which works; however, it's an undocumented feature.
User Comments: andreas_kupries added on 2004-08-10 02:32:48:
Logged In: YES 
user_id=75003

Right. Worse, the stack object command is always in the
global namespace. Graph for example on the other hand
generates in the callers namespace first. Definitely in need
of an update. Still the first/old style of command
generation. I believe I will add serialization as well
(trivial for stack). Maybe enough to go v2 for that package.