Skip to content
Tcl Source Code History Of Ticket 2006641
Login

History Of Ticket 2006641

Artifacts Associated With Ticket 2006641

  1. Ticket change [fc2c5194fb] (rid 108183) by wiede on 2008-06-30 10:58:27:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      In the current implementation of TclOO a class with 2 superclasses has an unexpected handling of the next command. if in the constructor there are 2 calls to next then always the constructor of the first superclass is called.
      
      I think a "natural" way would be to always call any entry in a call chain only once.
      
      proposed change:
      add a hasBeenCalled flag to the CallChain struct and modify TclOOInvokeContext, to set the hasBeenCalled flag after a call to a method in the call chain. When doing the next call to a method in the call chain, check for entries, which have hasBeenCalled set and skip them until the first entry, which has not set hasBeenCalled. At the end (if (isFirst) { ... }) reset hasBeenCalled for all entries in the call chain.
      
      That would also help itcl to be able to use the "normal" constructor call chain. At the moment itcl is using constructor methods and has additional code to build the correct (for itcl) constructor call chain.
      
      
      
    4. foundin initialized to: "None"
    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: "wiede"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to: "modified next command handling"
    12. type initialized to: "RFE"
  2. Ticket change [c4585f1dc0] (rid 111835) by wiede on 2008-10-06 00:07:30:

    1. icomment:
      
      
      File Added - 296164: tcloo_bad_next.tcl
      
      How the proposed change is done is not important, it's only described here to describe the logic I would like to have. In the attached file find an example which also makes problems using TclOO
      File Added: tcloo_bad_next.tcl
      
      
    2. login: "wiede"
    3. mimetype: "text/plain"
    4. username: "wiede"
  3. Add attachment "tcloo_bad_next.tcl" [1335844a20] (rid 124173) by wiede on 2008-10-06 00:07:30.

  4. Ticket change [fac57406c9] (rid 91939) by wiede on 2008-10-06 00:07:52:

    1. icomment:
      
      
      File Added - 296165: tcloo_bad_next.tcl
      
      How the proposed change is done is not important, it's only described here to describe the logic I would like to have. In the attached file find an example which also makes problems using TclOO
      File Added: tcloo_bad_next.tcl
      
      
    2. login: "wiede"
    3. mimetype: "text/plain"
    4. username: "wiede"
  5. Ticket change [8443df69a7] (rid 117525) by wiede on 2008-10-06 00:08:51:

    1. icomment:
      
      
      File Added - 296166: tcloo_bad_next.tcl
      
      How the proposed change is done is not important, it's only described here to describe the logic I would like to have. In the attached file find an example which also makes problems using TclOO
      File Added: tcloo_bad_next.tcl
      
      
    2. login: "wiede"
    3. mimetype: "text/plain"
    4. username: "wiede"
  6. Ticket change [3e5ddebcbb] (rid 121251) by wiede on 2008-10-06 00:09:38:

    1. icomment:
      
      
      File Added - 296167: tcloo_bad_next.tcl
      
      How the proposed change is done is not important, it's only described here to describe the logic I would like to have. In the attached file find an example which also makes problems using TclOO
      File Added: tcloo_bad_next.tcl
      
      
    2. login: "wiede"
    3. mimetype: "text/plain"
    4. username: "wiede"
  7. Ticket change [8dd49e0709] (rid 128005) by wiede on 2008-10-06 00:10:41:

    1. icomment:
      
      
      File Deleted - 296167: 
      
      
      
    2. login: "wiede"
    3. mimetype: "text/plain"
    4. username: "wiede"
  8. Ticket change [6929e0af06] (rid 103198) by wiede on 2008-10-06 00:12:09:

    1. icomment:
      sorry for posting 4 times, had problems with my browser
      
      
    2. login: "wiede"
    3. mimetype: "text/plain"
    4. username: "wiede"
  9. Ticket change [d3723b15ec] (rid 123290) by dkf on 2009-05-11 21:00:38:

    1. priority changed to: "6"
  10. Ticket change [c29101a44a] (rid 111508) by dkf on 2012-05-17 17:53:23:

    1. icomment:
      
      
      IP - Comment Removed: 94.168.233.125
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  11. Ticket change [27d8681598] (rid 88593) by dkf on 2012-05-17 17:53:25:

    1. icomment:
      
      
      IP - Comment Removed: 94.168.233.125
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  12. Ticket change [12e108ac39] (rid 124122) by dkf on 2012-05-17 17:53:28:

    1. icomment:
      
      
      IP - Comment Removed: 94.168.233.125
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  13. Ticket change [3a274e4dcf] (rid 112515) by dkf on 2012-05-17 17:53:32:

    1. icomment:
      
      
      IP - Comment Removed: 94.168.233.125
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  14. Ticket change [7ac8d6ac72] (rid 90396) by dkf on 2012-05-17 17:55:16:

    1. closedate changed to: "2012-05-17T10:55:16"
    2. closer changed to: "dkf"
    3. icomment:
      Does the [nextto] command provide an alternate mechanism for dealing with this?
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Pending"
    8. username: "dkf"
  15. Ticket change [e9774b7fa3] (rid 133385) by dkf on 2013-08-20 10:54:17:

    1. closedate changed to: "2456524.95437194"
    2. comment changed to:
      In the current implementation of TclOO a class with 2 superclasses has an unexpected handling of the next command. if in the constructor there are 2 calls to next then always the constructor of the first superclass is called.
      
      I think a "natural" way would be to always call any entry in a call chain only once.
      
      proposed change:
      add a hasBeenCalled flag to the CallChain struct and modify TclOOInvokeContext, to set the hasBeenCalled flag after a call to a method in the call chain. When doing the next call to a method in the call chain, check for entries, which have hasBeenCalled set and skip them until the first entry, which has not set hasBeenCalled. At the end (if (isFirst) { ... }) reset hasBeenCalled for all entries in the call chain.
      
      That would also help itcl to be able to use the "normal" constructor call chain. At the moment itcl is using constructor methods and has additional code to build the correct (for itcl) constructor call chain.
      
    3. icomment:
      Evidence suggests that the <tt>nextto</tt> mechanism handles this adequately.
      
    4. login: "dkf"
    5. mimetype: "text/html"
    6. resolution changed to: "Accepted"
    7. severity changed to: "Minor"
    8. status changed to: "Closed"
    9. username: "dkf"