Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3ea8b458c751019e0f5d03f10d4b97aee78556b3
Ticket: 1114355fffffffffffffffffffffffffffffffff
Tcl_FindCommand: bogus comment?
User & Date: msofer on 2007-10-28 01:03:21
Changes

  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"