Subject: ANNOUNCE: Will's Guide to Creating Object Commands - DN [1]


William.H.Duquette@jpl.nasa.gov (William H. Duquette) - 09 Feb 1999 - comp.lang.tcl.announce,comp.lang.tcl

 Now available:  Will's Guide to Creating Object Commands

 See: http://www.cogent.net/~duquette/tcl

 Overview:

 The warm acceptance of my guide to namespaces and
 packages (also available at the above URL) has lead me
 to attempt something similar on another topic.

 It's often nice to package some functionality as
 an object, even in pure Tcl.  Tk widget commands
 are the obvious example.  The question is, how
 does one do it?  And how does one do it well?
 The answer is particularly complicated by the
 presence of namespaces.  Tk widget commands
 necessarily live in the global namespace; other
 objects should live in the namespace in which
 the programmer creates them.  This leads to
 a surprising number of issues.

 As with my previous guide, I submit this for
 comments and corrections.  If you think I'm
 recommending something that's sub-optimal,
 let me know.  If you think I'm making a
 serious mistake, let me know.  If there are
 related techniques or issues that you think
 I should discuss, let me know.

 Will Duquette

 [[Send Tcl/Tk announcements to tcl-announce@mitchell.org
   Send administrivia to tcl-announce-request@mitchell.org
   Announcements archived at http://www.findmail.com/list/tcl_announce/
   The primary Tcl/Tk archive is ftp://ftp.neosoft.com/pub/tcl/ ]]

Last modified
1999-09-27

(195.108.246.50)

Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated