Skip to content
Tcl Source Code History Of Ticket 719454ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 719454ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 719454ffffffffffffffffffffffffffffffffff

  1. Ticket change [b3433b01f4] (rid 98499) by mic42 on 2003-04-11 04:02:03:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      interp alias is a mighty tool, but lacks introspection
      capabilities that exists for procs.
      
      info args
      info default
      
      work only for procs, not for aliases to procs.
      
      Example of the problem:
      
      proc foo {a b c d e} {
            puts "Hello"
      }
      
      % interp create a
      % interp alias a fooz {} foo
      fooz
      % interp eval a fooz
      wrong # args: should be "foo a b c d e"
      % interp eval a info args fooz
      "fooz" isn't a procedure
      % interp alias a fooz
      foo
      
      This makes it impossible for slave interpreters to
      discover the correct number of arguments from an alias
      other than by error or by asking their masters for help. 
      
      It would be really nice if at least the [info args] and
      [info default] commands would work for aliased procs,
      probably accounting for the change in the parameters
      list possible with interp alias.
      
      One example where this would be useful is for
      tclhttpd's Direct_Url system that tries to detect
      arguments by [info args] which fails for aliased in procs.
      
      
      
      
      
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mic42"
    9. subsystem initialized to: "20. [interp]"
    10. title initialized to: "Provide better alias introspection"
    11. type initialized to: "RFE"
  2. Ticket change [9caa32db73] (rid 96183) by mic42 on 2003-05-16 19:55:17:

    1. icomment:
      Logged In: YES 
      user_id=302287
      
      The wiki now has some code for this:
      http://mini.net/tcl/8766
      
      Builtin would be nicer though.
      
      
    2. login: "mic42"
    3. mimetype: "text/plain"
    4. username: "mic42"
  3. Ticket change [10506b783d] (rid 94954) by mic42 on 2003-05-16 19:56:49:

    1. priority changed to: "2"