Skip to content
Tcl Source Code History Of Ticket 3611641fffffffff
Login

History Of Ticket 3611641fffffffff

Artifacts Associated With Ticket 3611641fffffffff

  1. Ticket change [2b83f6b21c] (rid 118758) by tombert on 2013-04-23 09:30:31:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "current: 8.6.0"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "tombert"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to: "superclass method does not get exportet"
    12. type initialized to: "Bug"
  2. Ticket change [88e2dd5fea] (rid 131932) by tombert on 2013-04-23 16:31:24:

    1. icomment:
      https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/8owilCo8LcA
      
      
    2. login: "tombert"
    3. mimetype: "text/plain"
    4. username: "tombert"
  3. Ticket change [2add6189f3] (rid 133169) by dkf on 2013-08-03 19:31:04:

    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"
  4. Ticket change [1b5553e558] (rid 133170) by dkf on 2013-08-03 19:48:02:

    1. login: "dkf"
    2. mimetype: "text/plain"
  5. Ticket change [c7520f5511] (rid 133214) by dkf on 2013-08-06 14:24:32:

    1. closedate changed to: "2456511.10037613"
    2. closer changed to: "dkf"
    3. 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.
      
    4. login: "dkf"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"