From: Jan N. <jan...@gm...> - 2013-03-07 15:35:21
|
2013/3/7 Donald G Porter <don...@ni...>: > > Rewrite to avoid calling it for performance or other reasons if you > wish, but do not label it deprecated. >From Eval.3: >Note: for backward compatibility with versions before >Tcl 8.0, \fBTcl_Eval\fR copies the value result in \fIinterp\fR to >\fIinterp->result\fR (use is deprecated) where it can be accessed directly. > This makes \fBTcl_Eval\fR somewhat slower than \fBTcl_EvalEx\fR, which >does not do the copy. >.PP >\fBTcl_EvalEx\fR is an extended version of \fBTcl_Eval\fR that takes >additional arguments \fInumBytes\fR and \fIflags\fR. For the >efficiency reason given above, \fBTcl_EvalEx\fR is generally preferred >over \fBTcl_Eval\fR. So, you are right that Tcl_Eval is not deprecated, but still, Tcl_EvalEx is prefered. Regards, Jan Nijtmans |