How to create C/C++ proxy for 'ensemble' command
<p>I need to have a proxy function (C/C++) called before every command registered in tcl interpreter. For casual commands it is simple, I get <code>Tcl_CmdInfo</code>, remember it, and set new <code>Tcl_CmdInfo</code> with my proxy function into <code>objProc</code> field. When my proxy is called then I do what I need and then I call <code>objProc</code> from original <code>Tcl_CmdInfo</code>. It works OK.</p>

<p>Problem is that ensemble commands (<code>info</code>, <code>dict</code> etc.) stop to be 'ensemble' when I call <code>Tcl_SetCommandInfo</code> for them. They works fine but cannot be modified by 'namespace ensemble' anymore. Any ideas?</p>

<p>PS. Tracing is not a solution here: it is several times slower and I cannot accept it.</p>