Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-06-17
05:24 • Closed ticket [569438ffff]: Bug in global plus 7 other changes artifact: be9be913cf user: msofer
2002-06-16
01:14 • Ticket [569438ffff]: 5 changes artifact: 1be2e01b34 user: hobbs
2002-06-15
17:35 • New ticket [569438ffff]. artifact: a68a8813c8 user: petasis

Bug in global

Closed / Fixed569438ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-06-15 17:35:24
Recent byte compilation changes have inserted a minor
bug in global. Its easy to reproduce with the following
script:

catch {console show}
set Text(Files...) Files...
puts "\$Text(Files...)     = $Text(Files...)"
puts "\$\{::Text(Files...)\} = ${::Text(Files...)}"
puts "\$\{Text(Files...)\}   = ${Text(Files...)}"

proc testGlobal {} {
  global Text
  puts "Proc: \$Text(Files...)     = $Text(Files...)"
  puts "Proc: \$\{::Text(Files...)\} = ${::Text(Files...)}"
  puts "Proc: \$\{Text(Files...)\}   = ${Text(Files...)}"
}
testGlobal
hobbsplain2002-06-16 01:14:28
Logged In: YES 
user_id=72656

In particular, the bug is that the last of the 3 is not being 
recognized as global anymore in the proc.
msoferplain2002-06-17 05:24:13
Logged In: YES 
user_id=148712

Fixed. Problems was in tclCompile.c(TclCompileTokens).
Log in (anonymous is fine) to add a comment.