Skip to content
Tcl Source Code History Of Ticket 1017299
Login

History Of Ticket 1017299

Artifacts Associated With Ticket 1017299

  1. Ticket change [2d2752a550] (rid 119025) by dgp on 2004-08-27 00:42:36:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      % namespace eval one {
          namespace export foo
          proc foo {} {}
      }
      % namespace eval two {
          namespace export foo
          namespace import ::one::foo
      }
      % namespace eval three {
          namespace export foo
          namespace import ::two::foo
      }
      % namespace eval two namespace import -force ::three::foo
      % namespace origin two::foo     
      
      ...leaves Tcl hung in an internal
      infinite loop.
      
      The import loop prevention check
      inside Tcl_Import only prevents
      "end-to-end" loops, not lesser
      cycles of reference.
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "21. [namespace]"
    10. title initialized to: "[namespace import] loop not prevented"
    11. type initialized to: "Bug"
  2. Ticket change [a23e571d2f] (rid 109853) by dgp on 2004-08-27 20:52:06:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      In the spirit of "snapshot semantics"
      I think this bug can be fixed by not
      using import chains internally.  Have
      each import refer directly to its origin.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [cd971a7569] (rid 95918) by dgp on 2004-08-27 21:27:31:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      miguel points out that would
      change the following script
      behavior:
      
      %  namespace eval a {namespace export *; proc a {} {puts hi}}
      %  namespace eval b {namespace export *;namespace import ::a::a}
      %  namespace eval c {namespace import ::b::a}
      % c::a
      hi
      % namespace eval b {proc a {} {puts lo}}
      % c::a
      lo
      % b::a
      lo
      % a::a
      hi
      
      From my perspective, that code just
      demonstrates that we have an
      "inconsistent [namespace import] model"
      (See Bug 565823).  Do we implement
      snapshot semantics or not?
      
      But, it's probably unchangeable at
      this point. 
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [6835d34647] (rid 103020) by dgp on 2004-09-10 00:02:33:

    1. icomment:
      
      
      File Added - 100907: 1017299.patch
      
      Logged In: YES 
      user_id=80530
      
      having looked into the internals
      quite a bit now, I think I had the
      wrong idea about "snapshot
      semantics".  Appears that phrase
      is only intended to refer to 
      export sets, not to the very definition
      of commands.
      
      Note another bug.  Tcl_Import
      accepts as an argument the
      namespace to import into, and
      if that argument is NULL, uses
      the current namespace of the interp.
      When checking for import loops,
      the current namespace of the interp
      is checked, rather than the namespace
      to import into.
      
      Here's a patch for the bugs.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Add attachment "1017299.patch" [8fd5ce7b5a] (rid 120344) by dgp on 2004-09-10 00:02:33.

  6. Ticket change [8a77350c90] (rid 127395) by dgp on 2004-09-10 00:13:34:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2004-09-09T17:13:34"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      Patch committed to HEAD
      and 8-4-branch.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dgp"