Overview
| Artifact ID: | 908281bfdc8f5d1bc151ca4f273cfaa1c2674a1c718f951194022d6ba3d9ff61 |
|---|---|
| Ticket: | 2960221fffffffffffffffffffffffffffffffff
enhanced script level options |
| User & Date: | dkf on 2024-05-23 15:45:45 |
Changes
- closedate changed to: "2460454.15677271"
- closer changed to: "dkf"
- comment changed to:
using the script level of ::oo::define (or ::oo::objdefine) command (for a mostly script level version of Itcl) I am missing a possibility/option to set the USE_DECLARER_NS flag when defining a method and there is no way to set the PUBLIC_METHOD or PRIVATE_METHOD flag for that method, as Itcl cannot use the logic for isPublic as it is implemented in TclOO right now. An additional option to overwrite that logic would be enough. I have done a quick hack in tclOODefineCmds.c TclOODefineMethodObjCmd in adding a "-use_declarer_flag" and a "-protection <protection type>" flag for setting PUBLIC_METHOD or PRIVATE_METHOD or nothing at all likewise. With that feature I can do what I need for Itcl, but that exposes a bug with the "my" command handling when having set the USE_DECLARER_NS flag. I am opening a bug in the bug tracker for that.
- icomment:
8.7 also allows you to override how definition commands are located on a per-class basis, so you can do your own `method` for your own classes without smashing the one for everyone else.
- login: "dkf"
- mimetype: "text/x-markdown"
- resolution changed to: "Wont Fix"
- severity changed to: "Minor"
- status changed to: "Closed"