Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5f3cf04c5ba34401bfb2bfb29c15a75fd8d6d65d
Ticket: 1821332fffffffffffffffffffffffffffffffff
TclOO: [self caller]
User & Date: nobody on 2007-10-27 19:25:21
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I don't know if I'm right here:
    (tcl85b1 on WinXP with TclOO01)
    
    ------------
    package require TclOO
    
    oo::class create test {
        
        method selfcaller {} {
            puts [self caller]
        }
    }
    
    set t [test new]
    
    $t selfcaller
    ------------
    
    Error:
    caller is not an object
        while executing
    "self caller"
        (class "::test" method "selfcaller" line 2)
        invoked from within
    "$t selfcaller"
        (file "sample1.tcl" line 12)
    
    I was expecting a list like:
    "[list [self class] [self object] [self method]]"
    e.g.:
    {::test ::oo::Obj4 selfcaller}
    
  4. foundin changed to: "None"
  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: "TclOO: [self caller]"
  12. type changed to: "Bug"