Artifacts Associated With Ticket 3611641fffffffffffffffffffffffffffffffff
Ticket change [2b83f6b21c] (rid 118758) by tombert on 2013-04-23 09:30:31:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Considering this example here: oo::class create B { variable bvar constructor args {set bvar "fromB"} method getBvar args {return $bvar} } oo::class create A { superclass B variable avar constructor args {set avar "fromA"} method getAvar args {return $avar} } Without putting the "next" statement into the constructor of A it is impossible to call methods from class B: > set a [A new] ::oo::Obj92 > $a getAvar fromA > $a getBvar invalid command name "getBvar" thx - foundin initialized to: "current: 8.6.0"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "tombert"
- subsystem initialized to: "35. TclOO Package"
- title initialized to: "superclass method does not get exportet"
- type initialized to: "Bug"
Ticket change [88e2dd5fea] (rid 131932) by tombert on 2013-04-23 16:31:24:
- icomment:
https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/8owilCo8LcA
- login: "tombert"
- mimetype: "text/plain"
- username: "tombert"
- icomment:
Ticket change [2add6189f3] (rid 133169) by dkf on 2013-08-03 19:31:04:
- closer changed to: "nobody"
- comment changed to:
Considering this example here: <pre> oo::class create B { variable bvar constructor args {set bvar "fromB"} method getBvar args {return $bvar} } oo::class create A { superclass B variable avar constructor args {set avar "fromA"} method getAvar args {return $avar} } </pre> Without putting the "next" statement into the constructor of A it is impossible to call methods from class B: <pre> > set a [A new] ::oo::Obj92 > $a getAvar fromA > $a getBvar invalid command name "getBvar" </pre> - icomment:
Can't reproduce: <pre> % set a [A new] ::oo::Obj13 % $a getAvar fromA % $a getBvar can't read "bvar": no such variable can't read "bvar": no such variable while executing "return $bvar" (class "::B" method "getBvar" line 1) invoked from within "$a getBvar" </pre> - login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Works For Me"
- severity changed to: "Minor"
- username: "dkf"
Ticket change [1b5553e558] (rid 133170) by dkf on 2013-08-03 19:48:02:
- login: "dkf"
- mimetype: "text/plain"
Ticket change [c7520f5511] (rid 133214) by dkf on 2013-08-06 14:24:32:
- closedate changed to: "2456511.10037613"
- closer changed to: "dkf"
- icomment:
Whatever is going on, it Works For Me. Yes, there's an error but that's just a “variable not set” problem which is trivial.
- login: "dkf"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Closed"