Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a08765f6b9ed29718c3404fa84067910469f9b9c8a16a100dbf2bed84e3e8ef5
Ticket: 53ac20f94bd0a749e9688fcdf8ed07f376c80c6a
namespace(n) documentation doesn't reflect TIP#278 changes
User & Date: emiliano on 2024-05-24 23:49:37
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    With Tcl 9 variable resolution behaves as stated on TIP#278
    
    $ cat varresolv.tcl 
    namespace eval a {variable a; set a ""}
    namespace eval b {proc b {} {namespace which -variable a::a}}
    puts [b::b]
    $ tclsh8.6 varresolv.tcl 
    ::a::a
    $ tclsh9.0 varresolv.tcl 
    
    $
    
    However, namespace(n) still reads
    
           ยท Variable names are always resolved by looking first in the  current namespace, and then in the global namespace.
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "emiliano"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "emiliano"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to:
    namespace(n) documentation doesn't reflect TIP#278 changes
    
  15. type changed to: "Bug"