Skip to content
Tcl Source Code History Of Ticket 2549883
Login

History Of Ticket 2549883

Artifacts Associated With Ticket 2549883

  1. Ticket change [f24c24ca77] (rid 109512) by dgp on 2009-01-30 18:23:33:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Seems there's no way when creating an
      ensemble command to set a Tcl_CmdDeleteProc.
      
      Either a revised interface permitting that,
      or some advice in the documentation about
      how to proceed in light of this disability
      (delete trace?  CmdInfo manipulation?) would
      be in order.
      
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "21. [namespace]"
    11. title initialized to:
      Tcl_CreateEnemble() lacks Tcl_CmdDeleteProc argument
      
    12. type initialized to: "RFE"
  2. Ticket change [1d81d5936a] (rid 90831) by dgp on 2009-01-31 01:24:07:

    1. icomment:
      
      This disability leaks through to the
      internal TclMakeEnsemble() utility as well.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [0600a0fdb2] (rid 89141) by dgp on 2009-01-31 02:18:17:

    1. icomment:
      
      Also no way to set a ClientData.
      
      Without these things, appears very hard
      to use the public access to ensemble machinery
      to create an object-like command.
      
      Maybe I'm barking up the wrong tree, and
      should be putting oo facilities to work
      instead?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. title changed to:
      Tcl_CreateEnemble() lacks ClientData,Tcl_CmdDeleteProc args
      
    5. username: "dgp"
  4. Ticket change [7db84cb268] (rid 97287) by dgp on 2009-01-31 02:21:12:

    1. icomment:
      
      well, access to these things is
      denied because the ensemble machinery
      itself is making use of them.  So
      what's the way to implement an object-like
      command?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [97edbbbcad] (rid 110522) by dkf on 2009-01-31 22:26:28:

    1. icomment:
      Try explaining the use-case for this significant increase in complexity first. :-)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [45fec22334] (rid 99442) by dgp on 2009-02-01 01:09:55:

    1. icomment:
      The intended use case was to convert the
      slave interp command returned by [interp create]
      into an ensemble.  The motivation for that was
      to assist the NRE-enabling of [$slave invokehidden]
      to fix Tcl Bug 2486550.
      
      Since I opened this, I've learned more about NRE
      and it's now clear that conversion to an ensemble
      is not necessary, and not really even very helpful
      in tackling 2486550, so this particular motivating
      case is no longer active.
      
      Now consider it just a feature request for extensions.
      If an extension wants to create an object-like command,
      is there a recommended way to build on Tcl_CreateEnsemble()
      to achieve that?  Or is it recommended to use the OO
      C routines instead?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [1c2d85f4d4] (rid 90558) by dkf on 2009-02-23 17:51:59:

    1. icomment:
      There is one way to do it now: attach the clientData to the individual subcommands in the ensemble. But the C OO routines are probably easier overall, especially if you're not interested in supporting inheritance.
      
      Everything in the OO code is NRE-enabled.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  8. Ticket change [12644b21c6] (rid 95297) by dkf on 2009-07-13 19:33:11:

    1. icomment:
      Can also use Tcl_SetEnsembleParameterList to install global extra arguments to every subcommand. If that's not sufficient, it really is time to get busy with TclOO instead.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  9. Ticket change [820dcde312] (rid 117158) by dkf on 2009-07-13 19:33:12:

    1. closedate changed to: "2009-07-13T12:33:12"
    2. closer changed to: "dkf"
    3. resolution changed to: "Rejected"
    4. status changed to: "Closed"