Skip to content
Tcl Source Code History Of Ticket 2549598
Login

History Of Ticket 2549598

Artifacts Associated With Ticket 2549598

  1. Ticket change [87eaa91513] (rid 131784) by dgp on 2009-01-30 16:47:50:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Several of the [interp] subcommands
      treat the empty path as a name for
      the current interp.
      
      However, [interp create $path] does not
      reject an empty list as an invalid $path
      value, nor does it complain that the
      current interp already exists.  Instead
      it creates a slave interp which then
      cannot be used.
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    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: "20. [interp]"
    11. title initialized to: "[interp create] accepts empty path"
    12. type initialized to: "Bug"
  2. Ticket change [5721e6e540] (rid 185121) by kjnash on 2020-07-21 18:14:13:

    1. assignee changed to: "aku"
    2. closer changed to: "nobody"
    3. comment changed to:
      Several of the [interp] subcommands
      treat the empty path as a name for
      the current interp.
      
      However, [interp create $path] does not
      reject an empty list as an invalid $path
      value, nor does it complain that the
      current interp already exists.  Instead
      it creates a slave interp which then
      cannot be used.
      
    4. icomment:
      The names {}, {{}}, {{{}}} all refer to the contents of the outer pair of braces.
      
      In 8.6.10 this misfeature still exists, but is a little different -
      the slave can be used.  The interpreter command {} is created and
      is usable, and the interpreter can be used with the interp command
      by pretending its name is {{}}. 
      
      It would be better if the "interp create" command refused to create
      interpreter {}, and recognized it as the name of the current
      interpreter.
      
      % interp create foo
      foo
      % interp create {}
      % interp slaves
      {} foo
      % lindex [interp slaves] 0
      % {} eval pwd
      /home/kjnash
      % interp alias {{}} look {} bar
      look
      % proc bar {} {return {Main Interpreter}}
      % {} eval look
      Main Interpreter
      % interp eval {{}} look
      Main Interpreter
      % interp eval {} look
      look: bad usage
      Try 'look --help' for more information.
      child process exited abnormally
      %
      
      "interp" seems to have a general problem with list processing.  The command
          interp create {{}}
      should create an interpreter named {{}} and it does, but in contexts
      like "interp alias" this interpreter must be addressed as {{{}}}.
      
    5. login: "kjnash"
    6. mimetype: "text/plain"
    7. severity changed to: "Minor"