Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d6e794824151d116d20e84814a6a2ac7f55449e6
Ticket: 2529157fffffffffffffffffffffffffffffffff
TclMakeEnsemble and NR-enabled subcommands
User & Date: dgp on 2009-01-22 18:54:32
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    In the NRE world, a Command no longer
    needs a non-NULL objProc to be valid.
    A non-NULL nreProc is also sufficient.
    
    Starting at line 6220 of tclNamesp.c,
    I suggest this alternative:
    
    if (map[i].proc || map[i].nreProc) {
      cmdPtr = (Command *)Tcl_NRCreateCommand(interp,
          TclGetString(toObj), map[i].proc,
          map[i].nreProc, map[i].clientData, NULL);
      cmdPtr->compileProc = map[i].compileProc;
      if (map[i].compileProc != NULL)
        ensembleFlags |= ENSEMBLE_COMPILE;
    }
    
    With that change, the routine DictForCmd()
    no longer needs to exist.  The NRE-enabled
    version DictForNRCmd() is sufficient.
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  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: "dgp"
  10. subsystem changed to: "21. [namespace]"
  11. title changed to: "TclMakeEnsemble and NR-enabled subcommands"
  12. type changed to: "Bug"