I jiggered some stuff around in Tcl::Tk that touches everything
essentially - how the basic object stuff is managed between
widgets and their data. I fixed it up to have "instance data",
but it was a rough botch. There are several limitations that I
did not work around.
I plan to rework all this tomorrow by changing Tcl::Tk to have
each Tcl::Tk object start with the instance control, like the
interp and the %W hash. This will trickle down through all the
other bits (hopefully). Each widget will be an object that can
have instance data, overloading the stringify to return the path.
I think (hope) this will address the limitations as well as
making the code simply cleaner. If anyone has reservations or
great ideas, give them now ...
--
Jeff Hobbs, The Tcl Guy
http://www.ActiveState.com/, a division of Sophos
|