summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authorandreask <andreask>2011-11-21 18:23:16 (GMT)
committerandreask <andreask>2011-11-21 18:23:16 (GMT)
commit173cf0ec0e025e625bbd4c5572189ed8fa023220 (patch)
treef97dc0fb0ad7aafc48b91e4dd17ddc1c7dff34e6 /generic/tclTest.c
parenteaff95d22a6da47b1194c93e4cfd11aa6b31d506 (diff)
downloadtcl-173cf0ec0e025e625bbd4c5572189ed8fa023220.zip
tcl-173cf0ec0e025e625bbd4c5572189ed8fa023220.tar.gz
tcl-173cf0ec0e025e625bbd4c5572189ed8fa023220.tar.bz2
Fix a bug where global precompiled code (A) called from a precompiled
procedure causes the core to recompile (A), triggering the trap laid inside, i.e. 'error "called a copy of compiled code"'. <pre>Example ----------------------ex1.tcl proc init {} { source ex2.tcl } init ----------------------ex2.tcl puts a ----------------------</pre> When run as precompiled code the 'puts a' is not executed, only the trap. Fixed by enclosing the offending code into a guard which prevents its execution for precompiled code. The change passes the entire testsuite.
Diffstat (limited to 'generic/tclTest.c')
0 files changed, 0 insertions, 0 deletions