diff options
| author | andreask <andreask> | 2011-11-21 18:23:16 (GMT) |
|---|---|---|
| committer | andreask <andreask> | 2011-11-21 18:23:16 (GMT) |
| commit | 867c43d532baf487d1e270fd7e69a9e78698a740 (patch) | |
| tree | f97dc0fb0ad7aafc48b91e4dd17ddc1c7dff34e6 /generic/tclTest.c | |
| parent | b14573b21e2e406398146397885a1a0c95ca3e95 (diff) | |
| download | tcl-867c43d532baf487d1e270fd7e69a9e78698a740.zip tcl-867c43d532baf487d1e270fd7e69a9e78698a740.tar.gz tcl-867c43d532baf487d1e270fd7e69a9e78698a740.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
