Skip to content
Tcl Source Code History Of Ticket 1a56550e961f282b
Login

History Of Ticket 1a56550e961f282b

Artifacts Associated With Ticket 1a56550e961f282b

  1. Ticket change [5a5b064236] (rid 157158) by dkf on 2017-10-18 15:53:49:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/html"
    4. comment initialized to:
      If we run this code which has <i>mixins in a superclass of the class of interest</i>:
      <dl><dd><pre>
      oo::class create C {
          method c {} {}
      }
      
      oo::class create D {
          mixin C
          method d {} {}
          unexport destroy
      }
      
      oo::class create E {
          superclass D
          method e {} {}
      }
      
      puts [info class methods E -all]
      E create e1
      puts [info object methods e1 -all]
      </pre></dl>
      We see that both of the introspectors find <tt>d</tt> and <tt>e</tt> but not <tt>c</tt>. This is not correct; the introspection should find all three.
      
    5. foundin initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "dkf"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "dkf"
    13. subsystem initialized to: "35. TclOO Package"
    14. title initialized to: "Method list introspection misses mixins"
    15. type initialized to: "Bug"
  2. Ticket change [1b31495b3b] (rid 157163) by dkf on 2017-10-18 16:07:04:

    1. assignee changed to: "dkf"
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
  3. Ticket change [ead140557a] (rid 157178) by dkf on 2017-10-19 09:28:53:

    1. closedate changed to: "2458045.89506909"
    2. closer changed to: "dkf"
    3. icomment:
      The traversal of the mixin links was in the wrong place relative to the tail-recursive unrolling inside <tt>AddClassMethodNames</tt> inside tclOOCall.c; the mixin would have been found if the class into which it had been mixed had two (or more) ordinary superclasses. Rearranging the code and adding a separate mechanism for determining how to avoid excess work seems to fix it.
      
    4. login: "dkf"
    5. mimetype: "text/html"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"