Skip to content
Tcl Source Code History Of Ticket 1890579
Login

History Of Ticket 1890579

Artifacts Associated With Ticket 1890579

  1. Ticket change [ed8e1316c9] (rid 103906) by wiede on 2008-02-10 12:37:12:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      For itcln-ng and maybe also for others it would be nice to allow C-implemented functions to be used a method implementation.
      
      Right now there is the ProcedureMethod interface (besides others) for adding methods to TclOO objects and classes. I think it would be very helpful to have a similar CMethod interface.
      
      The interface should be very similar to Procedure Method in that instead of Tcl_Obj *bodyObj there is a Tcl_ObjCmdProc *cMethod as a parameter to the functions of that API. The rest of all the necessary API functions should be identical (very similar) to the ProcedureMethod API functions.
      
      Instead of TclProcCompileProc(...) and TclObjInterpProcCore(...)there is a call to (cmPtr->cMethodPtr)(...) 
      
      For the script level I think it is not mandatory to have interfaces.
      
      Just for info:
      Itcl-ng uses a Register_CProc API to make the registration of functions with signature Tcl_ObjCmdProc available. And at the script level there is a cmethod additional interface for connecting script level method names with registered C-level methods. 
      
      I have a prototype implementation (in the itcl-ng sources) running, which has a lot of redundant duplicate code from file tclOOMethod.c. So I think that part would better fit there.
      
      Donal, as I know you like to implement it your way, I think the description here is enough for you, otherwise please let me know.
      
    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: "wiede"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to:
      CMethod API for TclOO methods (similar to ProcedureMethod)
      
    12. type initialized to: "RFE"
  2. Ticket change [b5de964dd4] (rid 125324) by dkf on 2008-02-11 05:13:50:

    1. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      There is already a public API for plugging in methods implemented in your own way. I see no need to create another. The API is not like that of a standard Tcl command because an additional argument (describing the context within which the method implementation was called) is needed.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [2db1ef1c68] (rid 119106) by dkf on 2008-02-11 05:13:51:

    1. closedate changed to: "2008-02-10T22:13:51"
    2. closer changed to: "dkf"
    3. resolution changed to: "Rejected"
    4. status changed to: "Closed"