Menu

#1185 error if an array element is used as -textvariable

open
5
2010-03-02
2010-03-02
No

Steps to reproduce:

puts [ info patchlevel ]
puts [ package require -exact ipentry 0.2 ]
set foo(bar) 1.1.1.1
::ipentry::ipentry .ip -textvariable foo(bar)
catch { set foo(bar) 1.1.1.2 } msg
puts $msg
exit

output for version 0.2:
8.4.19
0.2
1.1.1.2

output for version 0.3
8.4.19
0.3
can't set "foo(bar)": can't read "var": variable is array

Expected:
no error in both cases

I saw a big rework in ipentry.tcl from 1.13 to 1.14 that changed
::ipentry::traceVar to ::ipentry::traceFired and eliminated the
test if { $key != "" }

Is this a bug or a feature?

Discussion

  • Andreas Kupries

    Andreas Kupries - 2010-03-02
    • assigned_to: nobody --> afaupell