AW: [R-gui] tkbind-question
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Fri Jan 16 14:36:35 MET 2004
"Unternährer Thomas, uth" <uth at zhwin.ch> writes:
> Thanks a lot for your answer...
>
> I know the command tkcmd, but it's not really clear to me what exactly is the benefit in using tkcmd instead of
> .Tcl(paste(...)). If I use the .Tcl-version I can use exactly the tcl-syntax, what sometimes is easier.
>
> Are there some real benefits in using tkcmd()?
Mostly readability, but tkcmd will convert each argument to a Tcl
object and use Tcl_EvalObjv on the resulting list, which is faster
and, more importantly, avoids "quoting hell". The difference is mostly
immaterial but can be spectacular if large text strings is involved.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-SIG-GUI
mailing list