Skip to content
Tcl Source Code History Of Ticket 420186ffffffffff
Login

History Of Ticket 420186ffffffffff

Artifacts Associated With Ticket 420186ffffffffff

  1. Ticket change [3571c1d433] (rid 106934) by nobody on 2001-04-30 16:02:12:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Linux SuSE7.1
      
      example:
      
      ==> Test1.tcl
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>
      #!/bin/sh
      #\
      exec tclsh "$0"
      
      lappend auto_path [ pwd ]
      
      puts [ ::Args::Test::Main ]
      <<<<<<<<<<<<<<<<<<<<<<<<<<<<
      
      ==> Test2.tcl
      >>>>>>>>>>>>>>>>>>>>>>>>>>>
      namespace eval ::Args {
          namespace export *
      }
      proc ::Args::P1 {} { return P1 }
      
      namespace eval ::Args::Test {
          namespace import ::Args::*
      }
      
      proc ::Args::Test::Main {} {
          return "P1<[P1]>"
      }
      <<<<<<<<<<<<<<<<<<<<<<<<<<<
      
      ==> tclIndex
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      # Tcl autoload index file, version 2.0
      # This file is generated by the "auto_mkindex" command
      # and sourced to set up indexing information for one or
      # more commands.  Typically each line is a command that
      # sets an element in the auto_index array, where the
      # element name is the name of a command and the value is
      # a script that loads the command.
      
      set auto_index(::Args::P1) [list source [file join $dir Test2.tcl]]
      set auto_index(::Args::Test::Main) [list source [file join $dir Test2.tcl]]
      <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
      
      If you run:
      
        ./Test1.tcl
      
      you get:
      
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      too many nested calls to Tcl_Eval (infinite loop?)
          while executing
      "namespace current"
          ("uplevel" body line 1)
          invoked from within
      "uplevel namespace current"
          (procedure "auto_import" line 4)
          invoked from within
      "namespace import ::Args::*"
          (in namespace eval "::Args::Test" script line 2)
          invoked from within
      "namespace eval ::Args::Test {
          namespace import ::Args::*
      }"
          (file "/alt/home/dev1usr/Project/Compiler2/test/Config/Test/Test2.tcl" 
      line 7)
          invoked from within
      "source /alt/home/dev1usr/Project/Compiler2/test/Config/Test/Test2.tcl"
          ("uplevel" body line 1)
          invoked from within
      "uplevel #0 $auto_index($name)"
          (procedure "auto_import" line 12)
          invoked from within
      "namespace import ::Args::*"
          (in namespace eval "::Args::Test" script line 2)
      
      ...
      
      
      <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
      
      
    4. foundin initialized to: "obsolete: 8.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "18. Commands M-Z"
    10. title initialized to: "namespace import"
    11. type initialized to: "Bug"
  2. Add attachment "test.tcl" [d9db8f2686] (rid 107681) by dgp on 2001-05-01 02:58:57.

  3. Ticket change [ffa78b52f3] (rid 108786) by dgp on 2001-05-01 02:58:57:

    1. assignee changed to: "dgp"
    2. foundin changed to: "obsolete: 8.4a3"
    3. icomment:
      
      
      File Added - 5866: test.tcl
      
      Logged In: YES 
      user_id=80530
      
      Attaching a simplified test script, test.tcl
      
      Exercise the bug:
      $ tclsh
      % auto_mkindex . test.tcl
      % lappend auto_path .
      % Args::Test::Main
      too many nested calls to Tcl_Eval (infinite loop?)
      
      The problem seems to be in [auto_import].  It is using
      a full [string match $pattern] to filter the names in
      auto_index, but [namespace import] is only interested in
      matches according to its stricter matching rules.  The
      wildcards should only match on command names, not parent
      namespaces.
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. subsystem changed to: "38. Init - Library - Autoload"
    7. username: "dgp"
  4. Ticket change [0224d65d42] (rid 119594) by dgp on 2001-05-01 04:01:08:

    1. icomment:
      
      
      File Added - 5869: import.patch
      
      Logged In: YES 
      user_id=80530
      
      Attached patch corrects [auto_import] to do pattern
      matching in the [namespace import] style.  Since there
      are no other callers of [auto_import], I think this is
      a safe change in terms of compatibility.
      
      I'll commit this to the HEAD tomorrow unless I hear an
      objection.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [c28ba1564f] (rid 111503) by hobbs on 2001-05-04 03:38:13:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      looks good to me.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  6. Ticket change [f1ceb668bf] (rid 109420) by dgp on 2001-05-04 05:35:08:

    1. icomment:
      
      
      File Deleted - 5869: 
      
      
      
      File Added - 5973: import.patch
      
      Logged In: YES 
      user_id=80530
      
      Improved patch include updates to test suite, and
      improved auto_index filtering (fewer script level
      iterations).
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Add attachment "import.patch" [eb386d1c8e] (rid 103504) by dgp on 2001-05-04 05:36:09.

  8. Ticket change [d175342d03] (rid 113352) by dgp on 2001-05-04 05:36:09:

    1. icomment:
      
      
      File Deleted - 5973: 
      
      
      
      File Added - 5974: import.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [5f9055702b] (rid 115838) by dgp on 2001-05-04 05:39:14:

    1. closedate changed to: "2001-05-03T22:39:14"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      Committed.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"