Re: [tcltk-perl] why autoloading in Tcl/Tk do not work from Tcl::Tk?
Brought to you by:
hobbs
From: Vadim K. <va...@ar...> - 2004-05-02 17:32:02
|
> > Does anyone has an idea why autoloading does not fully functioning when > > Tcl/Tk is used from Perl? > > > The eval goes through a different path that will invoke the > unknown mechanism (which handles auto-loading), whereas the > icall function as written only ever invokes a command if it > already exists - it does NOT allow for autoloading. Thanks for explaining. 'unknown' mechanism explains all. > > This is the crux of the difference between the pre-existing > icall function and the alternative that I wrote (but is not > used by default). See the comments in the C code. Perhaps > you do want to use my icall function by default instead? I see your comment, and I think "call" from Tcl.pm should invoke your version of "icall" > > Other things you miss are command tracing and async checks. > The current icall function to the lowest level to make its > calls, which may be desired ... but perhaps we should make > them 2 alternate functions, with the default 'icall' being > my alternative function, and 'invoke' being the current > 'icall'? Let's do this way... Will you implement this change please? Vadim. |