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.