Overview
| Artifact ID: | e9774b7fa350bc5d06ec64e37e7161bdb8240835 |
|---|---|
| Ticket: | 2006641fffffffffffffffffffffffffffffffff
modified next command handling |
| User & Date: | dkf on 2013-08-20 10:54:17 |
Changes
- closedate changed to: "2456524.95437194"
- 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. - icomment:
Evidence suggests that the <tt>nextto</tt> mechanism handles this adequately.
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Accepted"
- severity changed to: "Minor"
- status changed to: "Closed"
- username: "dkf"