Showing posts with label TclOO. Show all posts
Showing posts with label TclOO. Show all posts

Tuesday, March 29, 2011

Simple TclOO and static class variables

The discussion of class-side slots for TclOO is instructive in light of Carl Sassenrath's blog on defining "simple" in Rebol and in-the-large.  But in the real world things are not so simple.

The TclOO architect offers his snippet from the view of the code internals of his framework.

Tcl 8.6 is in a slow beta while Rebol3 remains alpha - and in fairness TclOO was already a library for 8.5

A Curl (as in www.curl.com) architect in Boston once gave me his take on Tcl ... but again, in fairness, not having access to the internals of how mixins are implemented in Curl ...

The simple view: use traits where they are useful in maintaining separation.  Much harder: to get a project to adopt traits effectively (e.g., non-HTML output for Smalltalk Seaside or Scala Lift.)  Perhaps not possible: getting traits into ObjectIcon.

Anecdote: the Avro Arrow had a compontentized "open-bay" in its belly - long before the ISS universal docking spec.

Question: is re-motoring aircraft types always "simple" ?  DC-8?  And new wings for C5 Galaxy?  Will the Shuttle engines be re-used?

Question: Should the Canadarm2 have been coded in Erlang or Oz instead of Ada? Erlang would offer X, Oz X, Y and Z.  But for Ada there are tools and staff.

What is the "simple" approach to handling text in the age of Unicode?  My test candidate: Octavio Paz' "Blanco" as the intended "dynamic text".

Tuesday, December 21, 2010

Tcl 8.6

The manual page is at http://www.tcl.tk/man/tcl8.6/ but TclOO may not be final yet for 8.6 ?

Saturday, September 4, 2010

A default O-O package for Tcl 8.6: TclOO

 
While the link for O-O Tcl looks to be dated, the page for Tcl 8.6 releases is current.

I have a bias for XOTcl, but I will try to be open-minded when 8.6 gets out of beta.

TclOO is intended to offer classes and objects as a Tcl package rather than as an ad hoc extension to Tcl and Tk.  Some "patterns" folks will like the hiding of new in class in favour of create as the class declaration idiom - but instances are created via a command block substitution with the new word as in
set obj [MyClass new]
A google of TclOO and Tcl failed to get me past beta1 links to Tcl8.6b2 links.

But the link to the PDF on the new engine looked interesting.

This link at tcl.tk may be the final URL for core TclOO.

Over at activestate.com Tcl remains at 8.5.8 with a release number of 8.5.8.2 as of today.

Tcl 8.5.9 added the ttk::spinbox command.

A google on "Tcl 8.6" gives some useful links such as that to Mark Roseman's 8.6 page (he is the author of the tutorial for Ttk or Tile/Themed Tk.)