Tk Library Source Code

View Ticket
Login
Ticket UUID: 2014325
Title: couldn't set variable "dummy"
Type: Bug Version: None
Submitter: nobody Created on: 2008-07-09 16:50:24
Subsystem: cmdline Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-07-10 01:04:24
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2008-07-09 18:04:24
Description:
you get the error message 'couldn't set variable "dummy"'
when sourcing cmdline.tcl in case of the existence of
a global array (!) variable ::dummy.

try, for example:

echo 'array set dummy {a 1}; package require cmdline' | tclsh8.5
 
patch:

insert "variable dummy" within the context of
"namespace eval ::cmdline {...}"

... near line 449 in cmdline.tcl, version 1.3,
as in tcllib1.10
User Comments: andreas_kupries added on 2008-07-10 01:04:24:
Logged In: YES 
user_id=75003
Originator: NO

Agreed, the package does 'creative writing' :(
Fix is correct as well, and has been applied.
The package version gas been bumped to 1.3.1.