name resolution not working or works differently in trunk
Closed / Invalidb721292488d3c6e57db88cd5f59be297140229beCreated 6 years agoUpdated 6 years ago
Descriptionplain2020-09-21 07:03:54
The following works in 8.6.10 and core-8-6-branch, but not in trunk:
(also attached)
namespace eval sysvars {
variable v
proc init { } {
variable v
set v(works) true
}
}
::sysvars::init
namespace eval themeloader {
proc load { } {
puts "A: $::sysvars::v(works)"
puts "B: $sysvars::v(works)"
}
}
::themeloader::load
dgpplain2020-09-21 14:25:39
See TIP 278.
bllplain2020-09-21 17:08:15
Ok. I was fortunate in that I had fixed all of my references (for readability), at an earlier date, and happened to miss one file. This tip 278 has the potential to break a lot of programs. I hope that the referenced tip 277 does not get accepted, it's scary.
Log in (anonymous is fine) to add a comment.
Attachments:
- test-nr.tcl [download] added by bll on 2020-09-21 07:04:18. [details]