TOC PREV NEXT INDEX

 


Changes in Behavior


There are few differences between the behavior of bytecode files and Tcl scripts that are not compiled. This section explains these differences.

TclPro Compiler has the following limitations:

However, these limitation do not prevent the affected procedures from being compiled at runtime. The contents of the bytecode file are a representation of the internal structures of the compiled Tcl script, without the source code. Procedures defined in the source file are compiled and their internal structures are also stored without source code. Thus, compiled procedure bodies cannot be read or accessed through the info body command. As a consequence, you cannot depend on being able to read procedure bodies in the bytecode, as shown in Example 1.

The command info body on a compiled procedure cannot return the actual body of the procedure because that information is not available. Instead, it returns a fabricated script containing:




http://www.ajubasolutions.com
Voice: (650) 210-0100
Fax: (650) 210-0101
support@ajubasolutions.com
TOC PREV NEXT INDEX