Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e5a7bcf53f6229be3bad4a862849f1a04c895b20
Ticket: 2960221fffffffffffffffffffffffffffffffff
enhanced script level options
User & Date: wiede on 2010-02-27 14:54:34
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "wiede"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "enhanced script level options"
  12. type changed to: "RFE"