Overview
| Artifact ID: | 2add6189f3f3995201c871ab99dc90127c4ef472 |
|---|---|
| Ticket: | 3611641fffffffffffffffffffffffffffffffff
superclass method does not get exportet |
| User & Date: | dkf on 2013-08-03 19:31:04 |
Changes
- 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"