Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#37 Tcl 8.4 variable already exists error with .tbc files

bug
open
nobody
compiler (5)
5
2006-07-24
2006-07-24
Ed Hume
No

This script shows the error:

# this is ok
proc tmp {} {
set cache lic_ui
global $cache
set ${cache}(xx) 1
}

# this is ok
proc tmp2 {} {
global lic_ui
set ::lic_ui(xx) 2
}

# this has procomp/tbcload error under Tcl 8.4.11
# Error in startup script: variable "lic_ui" already
exists ...
# the error occurs at the assignment statement
# comment it out, and there is no error
proc tmp3 {} {
global lic_ui
set lic_ui(xx) 3
}

tmp
tmp2
tmp3

-------------------------------------------------
I'm seeing this error running Tcl8.4.11 on WIndows XP
or SUSE Linux 10.1 (32 bit bins on 64bit box) whether
the tbc file was prepared with the SUSE TclPro 1.5 or
with ASTcl procomp on WIndows.

Discussion