Overview
| Artifact ID: | fc2c5194fb350395891e9b32e2cec508e4bd7d42 |
|---|---|
| Ticket: | 2006641fffffffffffffffffffffffffffffffff
modified next command handling |
| User & Date: | wiede on 2008-06-30 10:58:27 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "wiede"
- subsystem changed to: "35. TclOO Package"
- title changed to: "modified next command handling"
- type changed to: "RFE"