As far as I understand Tcl bytecode is being invalidated if the namespace of the caller is different from the namespace of the original. So far so good. the tricky problem which I do not understand completely is how it works with procs.
If I have a proc in global namespace and I call it from a specific namespace will the bytecode of the proc will be under the specific namespace of the global namespace? Will the bytecode of the specific namespace will be invalidated due to calling proc from a different namespace?
If the proc is in a specific, but a different namespace than the caller will it change the answer?
What happens when we call a proc from a different proc?
Does upvar 1 in proc will work when it has to link to a variable from a different namespace?
Thanks very much in advance.