Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ed61d9d7706a98640ab90edef5be81e55875135c
Ticket: 2120903fffffffffffffffffffffffffffffffff
unsettled class and object methods
User & Date: nobody on 2008-09-20 19:25:43
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Linux debsam 2.6.18-6-k7 #1 SMP Mon Aug 18 09:20:26 UTC 2008 i686 GNU/Linux
    
    Tcl: 8.6a3
    
    ### source ###
    oo::class create MyClass {
       method toString {} {
          return "str"
       }
    
       method isa {o} {
          return [MyClass toString $o]
       }
    
       self {
          method toString {obj} {
             return [$obj toString]
          }
       }
    }
    
    MyClass create o1
    MyClass create o2
    
    puts [MyClass toString o1]
    puts [o1 toString]
    puts [o1 isa o2]
    
    ### output ###
    str
    str
    wrong # args: should be "MyClass toString"
        while executing
    "MyClass toString $o"
        (class "::MyClass" method "isa" line 2)
        invoked from within
    "o1 isa o2"
        invoked from within
    "puts [o1 isa o2]"
    
    
  4. foundin changed to: "obsolete: 8.6a3"
  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: "nobody"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "unsettled class and object methods"
  12. type changed to: "Bug"