Skip to content
Tcl Source Code History Of Ticket 900cb0284bcf1bf2
Login

History Of Ticket 900cb0284bcf1bf2

Artifacts Associated With Ticket 900cb0284bcf1bf2

  1. Ticket change [a9b2bd9354] (rid 152663) by Napier on 2017-03-25 20:37:15:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      So just ran into what I believe is a bug with TclOO.  I understand why it occurs and why the lifecycle specifics are probably getting in the way, but it definitely appears to be a bug.  In this case one that is rather severe since there is no way to introspect mixin relationships with unexport involved.
      
      In my case the mixin is unexporting some methods that may or may not exist.  During the definition we have no real way of knowing whether or not the methods will at some point exist.  The problem comes in later when we want to know if the method exists (without calling the method first and defining it on the mixin).  
      
      While its possible to create a method that will check [self next] that does not appear to be an appropriate solution for multiple reasons.  
      
      Additionally, in this case the error it reports when the problem occurs is:
      
      "unknown method "method_two": must be <cloned>, check, check_class, destroy, eval, method_one, method_two, unknown, variable or varname"
      
      See the paste below for an example of the bug that will allow you to re-create it.
      
      http://paste.tclers.tk/4186
      
    5. foundin initialized to: "8.6.6"
    6. is_private initialized to: "0"
    7. login: "Napier"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "d40c07534aa06a9bd120e0feb224d87bc7d21bae"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "Napier"
    14. subsystem initialized to: "35. TclOO Package"
    15. title initialized to: "TclOO unexport introspection bug"
    16. type initialized to: "Bug"
  2. Ticket change [4cd051ad1b] (rid 152680) by aspect on 2017-03-27 13:07:09:

    1. icomment:
      Fixed in branch [bug-900cb0284bc].  I think this is correct - the isWanted dance was missing a clause present in its other stanzas.  For completeness, there should be a test where the unexported method *is* supposed to be listed, but maybe this is enough.
      
    2. login: "aspect"
    3. mimetype: "text/plain"
  3. Ticket change [e5a5966ff4] (rid 152695) by jan.nijtmans on 2017-03-28 12:11:58:

    1. assignee changed to: "dkf"
    2. icomment: "Assigning to the TclOO guy"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
  4. Ticket change [3b67d345ab] (rid 152739) by dkf on 2017-03-29 19:10:05:

    1. closedate changed to: "2457842.29867257"
    2. closer changed to: "dkf"
    3. icomment:
      That looked reasonable to me. My only quibble was that it was done against the wrong branch (this should have been done against 8.6 first, for ease of merging).
      
    4. login: "dkf"
    5. mimetype: "text/html"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"