Overview
| Artifact ID: | ca4d56a044ccd555b310826562095b28ec283901 |
|---|---|
| Ticket: | 2960227fffffffffffffffffffffffffffffffff
problem with my command |
| User & Date: | wiede on 2010-02-27 15:03:38 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
Using the "my" command of an object when the object's class is created with createWithNamespace option shows that the "my" command uses the wrong namespace when created with the object. Use of createWithNamespace object for the object too fails with complaining that the namespace cannot be created, as it already exists. My quick hack was to add a flag to AllocObject and to the Class structure. the class structure has a flag use_declarer_ns, which is set to1 if the createWithNamespace option is used and the object on creation uses classPtr->thisPtr->selfCls->use_declarer_ns when calling AllocObject. I am not sure, if that's a suitable solution, but at least my example works with it. The example is in the attached file. Be aware that also the FRQ for the -use_declarer_ns option is necessary for that example to work.
- 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: "problem with my command"
- type changed to: "Bug"