Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c1bc81cc82799be4e0e3d7571d580f1d9273aba2
Ticket: 1574099fffffffffffffffffffffffffffffffff
Tcl_UpVar(2)? and behaviour contrary to the docs
User & Date: msofer on 2006-10-09 22:26:43
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Ever since Tcl8.0, the documentation of Tcl_UpVar says
    about the flags: "Either TCL_GLOBAL_ONLY or 0; if
    non-zero, then destName is a global variable; otherwise
    it is a local to the current procedure (or global if no
    procedure is active)."
    
    Code comments, the procedure TestupvarCmd() and var-3.4
    however say that TCL_NAMESPACE_ONLY is also accepted.
    
    A codesearch in google shows no users of any flag value
    other than 0 and TCL_GLOBAL_ONLY.
    
    Either the docs or the code requiring changing so that
    they agree. A priori, I would change the docs: even if
    unused, the ns-only flag value could be useful. OTOH,
    this is a *POTENTIAL INCOMPAT* - for anybody who would
    be relying on
       flags!=0   <=>  flags==TCL_GLOBAL_ONLY
    
    Opinion?
     
    
    
  4. foundin changed to: "obsolete: 8.5a4"
  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: "msofer"
  10. subsystem changed to: "07. Variables"
  11. title changed to: "Tcl_UpVar(2)? and behaviour contrary to the docs"
  12. type changed to: "Bug"