Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2add6189f3f3995201c871ab99dc90127c4ef472
Ticket: 3611641fffffffffffffffffffffffffffffffff
superclass method does not get exportet
User & Date: dkf on 2013-08-03 19:31:04
Changes

  1. closer changed to: "nobody"
  2. 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>
    
  3. 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>
    
  4. login: "dkf"
  5. mimetype: "text/html"
  6. resolution changed to: "Works For Me"
  7. severity changed to: "Minor"
  8. username: "dkf"