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
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- 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?
- foundin changed to: "obsolete: 8.5a4"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "07. Variables"
- title changed to: "Tcl_UpVar(2)? and behaviour contrary to the docs"
- type changed to: "Bug"