Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4758e8b0d964be134878038491d22c4ff1ca820c
Ticket: 1779249fffffffffffffffffffffffffffffffff
alternate var and command resolver
User & Date: wiede on 2007-08-22 08:23:05
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The purpose of this RFE is to to provide a different api for namespace/interp variable and command resolvers. It is based on a CallFrame dependent interface, so only commands which want to use it will get involved. The idea is for variables to look them up in a different namespace, for commands to look up constructs like ns1::command1 (no :: at the beginning!!) in a different namespace, which cannot be handled by namespace path.
    
    For Itcl the usage is tohave all variables in subnamespaces of i.e. ::itcl::variables in an object specific namespace with the class namespace as a subnamespace for every class in the objects hierarchy
    
    ::itcl::variables::object1::class1::var1
    ::itcl::variables::object1::class2::var2
    ::itcl::variables::object2::class1::var1
    
    for classes special command lookup for commands works as follows:
    object1 class1::command1 will find a command in i.e. ::ns1::ns2::class1
    and
    object1 class2::command2 will find a command in ::ns3::class2 
    
    The resolution using the stored resolvers is done using Tcl_FindCommand and Tcl_FindNamespaceVar. The call of these functions is dependent on a flag like FRAME_HAS_RESOLVER which has to be put into isProcCallFraem from the caller of the command (so it is only working locally)
    
    A prototype implementation can be found in the attached file (this has been tested with a new Itcl implementation) 
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "wiede"
  10. subsystem changed to: "45. Parsing and Eval"
  11. title changed to: "alternate var and command resolver"
  12. type changed to: "RFE"