Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fb29150bc254f832282ab1de9040ebdaebc83f45
Ticket: 1688593fffffffffffffffffffffffffffffffff
compiling variable links
User & Date: andreas_kupries on 2007-03-27 00:58:26
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    Originator: NO
    
    Quick review ...
    
    In the compilers for (namespace) upvar, what you return ERROR to force outline execution if the 'thisVar' is not local. However I see no code to remove  the instructions for var pairs which were ok and came before the variable which forced the outline compile.
    
    I.e. a command like "upvar 1 $vara here $varb <NOT_LOCAL_VAR>" (*) causes compilation of the vara/here pair, and then aborts for varb. But the instructions for vara are still in the result, are they not ?
    
    (*) I used <NOT_LOCAL_VAR> as placeholder because I have currently no idea how a variable name cannot be local. Shrug.
    
    Oh, I just saw that the code seems to assume that the 'local token' is a always varname, i.e. constant. It does not seem to handle the case of a the token being a command, or varr reference, i.e. ([...], $xxx), like in
    
        upvar 1 $external [ourvar]
        upvar 1 $external $myvar
    
    Both of these are cases which should force outline compile.
    
    
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"