Artifacts Associated With Ticket 218146ffffffffff
Ticket change [e07f0a194c] (rid 115205) by nobody on 2000-10-26 00:53:44:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2122 Bug Version: 8.1 SubmitDate: '1999-05-24' LastModified: '1999-08-08' Severity: MED Status: Closed Submitter: pat ChangedBy: hobbs OS: Windows 95 OSVersion: 8.1 and 8.0.4 Machine: X86 FixedDate: '2000-10-25' ClosedDate: '1999-08-08' Name: John Baxter ReproducibleScript: The following are commands typed in wish and the responses (on Windows 95). % variable x "" % puts $x % variable y "a" % puts $y a % namespace eval foo variable z "" % puts ${foo::z} can't read "foo::z": no such variable % namespace eval foo variable w "a" % puts ${foo::w} a % ObservedBehavior: The behavior with respect to the variable foo::z seems inconsistent with the other cases as well as with the man page on the "variable" command. DesiredBehavior: Initializing a variable with a value should make it readable. This is a conceptual error, and the result is as expected and documented. The namespace eval, like normal eval, will concat the args together. This causes an empty string ("") to just disappear. The command doesn't fail because variable with just one arg is acceptable. The safer way to call namespace eval is: namesapce eval foo { variable z "" } -- 08/08/1999 hobbs - foundin initialized to: "obsolete: 8.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
the "variable" command doesn't always initialize properly.
- type initialized to: "Bug"
Ticket change [12ae4976fa] (rid 124083) by welch on 2000-10-26 08:15:56:
- closedate changed to: "2000-10-26T01:15:56"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [1decb862e2] (rid 90888) by dgp on 2001-04-18 06:28:18:
- closedate changed to: "2001-04-17T23:28:18"
- closer changed to: "dgp"
- subsystem changed to: "07. Variables"
- title changed to:
the "variable" command doesn't always initialize properly.
Ticket change [c7aae88a99] (rid 121976) by dgp on 2001-04-18 06:28:40:
- closedate changed to: "2001-04-17T23:28:40"
- closer changed to: "dgp"
- resolution changed to: "Invalid"
- title changed to:
the "variable" command doesn't always initialize properly.