On Thu, Oct 28, 2010 at 12:38:29AM +0100, Massimo Manghi wrote: > > wouldn't '$this methodName' work out a solution?
I won't swear to it, but I think I tried that first, and 'my cmd',
and neither of them was happy with me.
> > I've got a kludged version of form.tcl that works (to the extent
> > that I've tested it) with the new 8.6.
> >
> > Is anyone interested in this code?
> >
>
> yes, I am.
I've attached it to this email. If attachments get scrubbed, let
me know, and I'll mail it direct.
> It's something we should talk about. Tcl 8.6 is getting momentum among the
> Tcl'ers and its new introductions will probably set new standards in the
> language history.
I'm pretty bullish on TclOO. I think it's a nice mix of providing
structure while still giving the developer the freedom to rework
things as his understanding of the problem matures. (How's that for
buzz-word compliance?)
I worked in C++ for 5 or 6 years and did a little with itcl. I ended
up unthrilled with OO. TclOO has revived my excitement.
This construct in the form.tcl code was the only one that caused
me some dismay at a quick-N-dirty translation to TclOO:
public variable defaults "" {
upvar 1 $defaults array
array set DefaultValues [array get array]
}
I think this can be implemented in TclOO with a variable trace and a
new object method, but I didn't have time right then to play with it.
Clif
--
... Clif Flynt ... http://www.cwflynt.com ... [email protected] ...
.. Tcl/Tk: A Developer's Guide (2nd edition) - Morgan Kauffman ..
.. 17'th Annual Tcl/Tk Conference: 2010, Oak Brook, IL USA ..
............. http://www.tcl.tk/community/tcl2010/ ............
form8.6.tcl
Description: Tcl script
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
