Status: review Severity: minor Category: Vlerq Ratcl Created: 2007-11-04 Updated: 2007-11-04

Accessing a view reference from within a write trace gives old value instead of new value.

 test 1 {ref in write var trace} {
    set ::result {}
    trace add variable w write dumpw
    proc dumpw args {lappend ::result [view @w size]}
    set w 5
    set w 8
    set w 10
    trace remove variable w write dumpw
    rename dumpw {}
    concat $::result [view @w size]
 } {5 8 10 10}

 ---- Result was:
 5 5 5 10
 ---- Result should have been (exact matching):
 5 8 10 10
 ==== 1 FAILED


2007-11-04 btheado

Created

Add a comment:

Tip: add empty lines between paragraphs and indent lines to prevent reformatting.

Your name or initials: