RE: [tcltk-perl] changes to Tcl and Tcl::Tk
Brought to you by:
hobbs
From: Jeff H. <je...@Ac...> - 2004-05-05 19:04:48
|
> > I implemented the changes to Tcl so that Tcl::icall now uses Tcl's > > unknown (AUTOLOAD) mechanism properly and kept the old version as > > Tcl::invoke (not directly used anywhere). > > And you documented this properly... Very nice. > > Do I understand this correctly that Tcl::invoke should be > used in simple cases to improve speed? It would be interesting to see an icall/invoke comparison in speed if someone wanted to make it. invoke should be a smidge faster, but I wouldn't recommend it in general because of the caveats of usage - the command must exist, and you circumvent a lot of stuff like command tracing, recursion safety-checks, and the unknown mechanism. Jeff |