reusing "code entities" without oop
- From: "Stephen M. Gava" <elguavas@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Mar 2007 00:25:32 -0000
Since we've been evaluating tcl/tk for a project I've found it asserted
in several places in documentation that most things that you might use
oop for in other languages are achievable in a non oop way in tcl.
In python for instance (using tkinter) you might make a tailored tk
control, or even a whole toplevel with all its functionality, an object.
You can then instantiate this object any number of times as a way of
reusing this packaged functionality.
What would be the "standard" (non oop) tcl way of acheiving this outcome,
or would the best answer be to use one of the oop "addons" for this
purpose?
The reason I ask is that the simplicity of pure tcl/tk is compelling for
deployment reasons, but if things like the "instantiation effect" need
non core addons then it probably makes more sense for us to go with a
combination of python (which we are more familliar with) and tk (via
tkinter).
TIA for any help,
Stephen.
.
- Follow-Ups:
- Re: reusing "code entities" without oop
- From: Stephen M. Gava
- Re: reusing "code entities" without oop
- From: Jeff Hobbs
- Re: reusing "code entities" without oop
- From: Neil Madden
- Re: reusing "code entities" without oop
- From: Larry W. Virden
- Re: reusing "code entities" without oop
- From: Bryan Oakley
- Re: reusing "code entities" without oop
- Prev by Date: tcp udp and broadcast weirdness...
- Next by Date: TCL and IPv6
- Previous by thread: tcp udp and broadcast weirdness...
- Next by thread: Re: reusing "code entities" without oop
- Index(es):
Relevant Pages
|