Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 15aa6a934fc168ee41f6f958c902df5aa00ba007
Ticket: 7bcf45d4cde3e639c64e43306878eb50f3266853
vwait inside TclOO method
User & Date: dkf on 2016-10-12 09:54:02
Changes

  1. closedate changed to: "2457673.91253314"
  2. closer changed to: "dkf"
  3. comment changed to:
    This example never prints "after forever":
    
    <pre>
    oo::class create A {
        variable forever
    
        method stop {} {
            puts stopping..........
            set forever 1
            
        }
        
        method start {} {        
            vwait forever
            puts "after forever..."
        }
    }
    
    set a [A new]
    after 1000 $a stop
    $a start
    </pre>
    
  4. icomment:
    The <tt>vwait</tt> command has <i>always</i> been documented to work with variables resolved from the global namespace. TclOO does not change that. Using this instead should work:
    <pre>
    vwait [my varname forever]
    </pre>
    
  5. login: "dkf"
  6. mimetype: "text/x-fossil-wiki"
  7. resolution changed to: "Invalid"
  8. status changed to: "Closed"
  9. username: "dkf"