Skip to content
Tcl Source Code History Of Ticket 1114355
Login

History Of Ticket 1114355

Artifacts Associated With Ticket 1114355

  1. Ticket change [b41f5de11d] (rid 124971) by dgp on 2005-02-01 23:22:13:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      A comment following the "name"
      argument to Tcl_FindCommand
      claims:
      
      "If it starts with "::", will be looked
       up in global namespace."
      
      Since custom resolvers are given
      first crack at the resolving task,
      and since they are apparently
      free to resolve names matching
      ::* however they like, I think
      this comment is false.
      
    4. foundin initialized to: "obsolete: 8.5a3"
    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: "Tcl_FindCommand: bogus comment?"
    11. type initialized to: "Bug"
  2. Ticket change [a37124486f] (rid 110047) by dgp on 2005-02-02 06:26:44:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Completing the thought, if
      a Tcl_FindCommand() caller
      wants to force resolution in
      the global namespace, it should
      use the TCL_GLOBAL_ONLY
      flag to accomplish that.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [0841f79606] (rid 89532) by dgp on 2005-02-02 23:18:25:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      there may be a lurking 
      inconsistency here with
      Tcl_GetCommandFromObj()
      where commands beginning
      with "::" *do* get special treatment.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [77252d15cc] (rid 89725) by dgp on 2005-02-02 23:30:58:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      ok, so I'm closing in on
      the opinion that the comment
      *ought* to be true, and the
      bug here is that the current
      implementation of
      Tcl_FindCommand allows
      custom resolvers to
      interpret a fully qualified
      command name to mean something
      other than its plain meaning.
      It appears this possibility is
      inconsistent with assumptions
      in other parts of Tcl.
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [28ccd943cd] (rid 88765) by dgp on 2005-08-30 02:01:27:

    1. priority changed to: "7 High"
  6. Ticket change [1cc1409cfa] (rid 90670) by msofer on 2007-09-13 07:41:42:

    1. foundin changed to: "obsolete: 8.5a7"
    2. priority changed to: "8"
  7. Ticket change [3ea8b458c7] (rid 121310) by msofer on 2007-10-28 01:03:21:

    1. closedate changed to: "2007-10-27T18:03:21"
    2. closer changed to: "msofer"
    3. foundin changed to: "obsolete: 8.5b2"
    4. icomment:
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      No inconsistency there: SetCmdNameFromAny calls Tcl_FindCommand to determine the command.
      
      What may be problematic is that the cmdName stores the global ns as the origin of the search for FQ names. This would cause buggy behaviour if
      (a) a namespace ns has a resolver that redirects FQ names
      (b) an FQ command ::cmdA is searched starting from ns, and resolved to (say) ::B
      (c) ::cmdA is resolved starting from elsewhere; the cached pointer to ::B will be used
      
      I agree that eventually the "correct" behaviour may be for FQ names to bypass all resolvers. Chose a "conservative" fix for now: insure that Tcl_FindCommand starts the search for FQ commands in the global ns. The difference is that resolvers on the global namespace or interp wide resolvers will be called.
      
      Tests show that itcl, xotcl and TclOO do not mind.
      
      
    5. login: "msofer"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "msofer"