> This is all Tcl::Tk stuff, and pkg_require has a more special purpose > internally than external (to the user). Whereas > packageRequire is just > translated by Tcl::Tk to the Tcl call [package require ...], > pkg_require is > used internally with a special cache for Tcl::Tk itself.
Don't you think this is very convenient and it is worth moving to 'Tcl' object? I.e we'll move Tcl::Tk::AUTOLOAD sub, which processes this, into Tcl::AUTOLOAD, and then not only Tcl::Tk interpreter but any Tcl interpreter will be able to, say, $int->setFoo(5); $int->incrFoo; print $int->GetVar('foo'); # 6 ? > > I would saw packageRequire should be recommended for end users, but > pkg_require can be used still internally. ok