Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 56b87ea0df9840a43eacc02d88c7885227fc6b12
Ticket: 2903811fffffffffffffffffffffffffffffffff
oo::object->variable working wrong
User & Date: dkf on 2009-11-25 15:45:50
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The following script fails:
      oo::object create obj
      oo::objdefine obj export variable
      proc foo o {o variable x; set x OK}
      proc bar o {o variable x; return $x}
      foo obj; bar obj
    Reading the documentation in the object(n) manual page would not lead you to this conclusion. The problem appears to be a guard inside the implementation that makes the method only work inside the body of a method instead of any normal stack context (like [global]). Arguably, it might even be beneficial to allow it to work in namespaces...
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dkf"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "oo::object->variable working wrong"
  12. type changed to: "Bug"