Overview
| Artifact ID: | 901d443968bdf9448f3458a453e5645f39f9db93f7cf321d9e23a3ca24cf43c6 |
|---|---|
| Ticket: | 2634f337a79d00e4a5c8d3d81e3cbd446b297549
namespace eval not finding global variables |
| User & Date: | anonymous on 2023-12-05 00:36:40 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The manual for tcl9.0 has not changed for namespace name resolution and so I will assume that the example should still work. It does work in 8.6, the below is in 9.0b1 % proc printTrace {args} {puts {*}$args} ;# my def to make this work % set traceLevel 0 0 % namespace eval Debug { printTrace $traceLevel } can't read "traceLevel": no such variable It does, however, find the procedure printTrace. It is supposed to look first in the Debug namespace, but not finding it there, it should eventually find it in the global namespace. One place this occurs is in BWidgets, the file dropsite.tcl does a test, namespace eval DropSite { ...snip... if { $tcl_platform(platform) == "unix" } { which being inside a namespace eval did not find tcl_platform. I had to fix it by changing to $::tcl_platform - foundin changed to: "tcl9.0b1"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "21. [namespace]"
- title changed to: "namespace eval not finding global variables"
- type changed to: "Bug"