Skip to content
Tcl Source Code Check-in [51f9d8af10]
Login

Check-in [51f9d8af10]

Overview
Comment: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.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 51f9d8af1041fead7e5e896e16f2704c7d257a06
User & Date: andreask on 2011-11-21 18:23:16.708
Original Comment: 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"'. Example ----------------------ex1.tcl proc init {} { source ex2.tcl } init ----------------------ex2.tcl puts a ---------------------- 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.
Other Links: manifest | tags
Context
2011-11-22
08:30
[Bug 2935503] Windows: file mtime sets wrong time (VS2005+ only) check-in: bc67d4f61a user: jan.nijtmans tags: trunk
2011-11-21
18:23
Fix a bug where global precompiled code (A) called from a precompiled procedure causes the core to ... check-in: 51f9d8af10 user: andreask tags: trunk
18:12
Fixed typo in a comment. check-in: 0a6cf58d8f user: andreask tags: trunk
Changes