Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2020-09-21
17:08 • Closed ticket [b721292488]: name resolution not working or works differently in ... artifact: 47f68a03dc user: bll
14:25 • Pending ticket [b721292488]. artifact: 9b119055e0 user: dgp
07:04 • Add attachment test-nr.tcl to ticket [b721292488] artifact: 333cd30bf4 user: bll
07:03 • New ticket [b721292488] name resolution not working or works differently in trun... artifact: bd5b203d79 user: bll

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: