Hello.
I'm writing a script to use namespaces and want to compile it into TBC.
(the matter here is not whether to use TBC or not, even if I don't use
it now, someone else will probably want to in the near future as well).
The problem is that every proc gets "rewritten" by
modules/tcl/namespace.tcl using [info body].
The problem is that when using [info body] on a precompiled procedure,
here's what it gets:
% info body z.xslt::xsl.begin
# Compiled -- no source code available
error "called a copy of a compiled script"
Now since it recreates these procs using the code as the body, whenever
I call the precompiled versions of these scripts, I get an 'called a
copy of a compiled script' error...
I probably need to make my script load after namespace.tcl and modify
the body of namespace.tcl, this is not a big problem, this will fix my
problem for now.
But can't this be done in a different way? Probably not only I want to
use TBC for code obfuscation...
--
WK