Skip to content
Tcl Source Code History Of Ticket bd2656d8e3
Login

History Of Ticket bd2656d8e3

Artifacts Associated With Ticket bd2656d8e3

  1. Ticket change [21160e9f8f] (rid 149303) by Martin0815 on 2016-10-28 13:07:10:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      The "unset" command used on a namespace variable, which hasn't a value assigned, causes correctly an error, claiming the variable does not exist.
      
      The declaration of the namespace variable, existing before using "unset", will be removed by using **unset**.
      
      Here an example script:
      
          % namespace eval a { variable A } 
          % info vars a::* 
          a::A 
          % info exists a::A 
          0 
          % unset a::A 
          can't unset "::a::A": no such variable 
          % info vars a::*
          %
      
      In my opinion the "unset" command should have no side effects, if a variable does not exist!
      Nothing is to be changed, if a variable to be unset does not exist, even if a declaration exist, this should not be touched, or the **unset** command should be changed to do not through an error.
      
      Or otherwise its documentation should be extended to document this side effect.
      
    5. foundin initialized to: "8,6.4"
    6. is_private initialized to: "0"
    7. login: "Martin0815"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "be10c68edb35fa3f93c8cac6f2c0d27dc3933920"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "Martin0815"
    14. subsystem initialized to: "07. Variables"
    15. title initialized to:
      unset fails for declared-only namespace vars, but removes declaration
      
    16. type initialized to: "Bug"
  2. Ticket change [40f9274f39] (rid 257616) by serhiy.storchaka on 2026-10-11 12:46:19:

    1. foundin changed to: "8.6.4"