Overview
| Artifact ID: | 21160e9f8fee12828f77ea51a2051c99187139c4 |
|---|---|
| Ticket: | bd2656d8e352ecc5e48545542716c65441ea494f
unset fails for declared-only namespace vars, but removes declaration |
| User & Date: | Martin0815 on 2016-10-28 13:07:10 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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. - foundin changed to: "8,6.4"
- is_private changed to: "0"
- login: "Martin0815"
- priority changed to: "5 Medium"
- private_contact changed to: "be10c68edb35fa3f93c8cac6f2c0d27dc3933920"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "Martin0815"
- subsystem changed to: "07. Variables"
- title changed to:
unset fails for declared-only namespace vars, but removes declaration
- type changed to: "Bug"