Artifacts Associated With Ticket 1821332fffffffffffffffffffffffffffffffff
Ticket change [5f3cf04c5b] (rid 115776) by nobody on 2007-10-27 19:25:21:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized 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} - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "TclOO: [self caller]"
- type initialized to: "Bug"
Ticket change [c0617dc7e2] (rid 102391) by dkf on 2007-10-28 05:20:59:
- icomment:
Logged In: YES user_id=79902 Originator: NO That's because that operation returns information about the *caller* of the method if that's also a method. Thus, If you'd done this: oo::class create test { method foo {} { my bar } method bar {} { puts [self caller]; my destroy } } [test new] foo you might have ended up with output like this: ::test ::oo::Obj6 foo Returning the other information would have been redundant. :-) - login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [bfa0035aae] (rid 102278) by dkf on 2007-10-28 05:21:20:
- closedate changed to: "2007-10-27T22:21:20"
- closer changed to: "dkf"
- resolution changed to: "Invalid"
- status changed to: "Closed"