Version 8 of Object

Updated 2009-09-05 14:14:15 by dkf

[Now, here's a challenge. Discuss what an "object" is, from a Tcl point of view!]

An object, from an object orientation point of view, might be thought of as an entity within an application which has executable code as well as related data and state.

It is, generally (always?) a specific instantiation of one or more classes.

See also Object (Computer science) [L1 ] at Wikipedia.

Other kinds of objects related to Tcl are:

  • Tcl_Obj - the fundamental representation of strings, etc. in Tcl (DKF: Note that it probably should have been called Tcl_Value, but that was taken for something else now obsolete.)

References to Documentation on OO Systems

DKF: These references point to places which allow you to figure out how to get building classes and running code quickly. Note that you might need to work a bit more to become an expert user of any of these...

TclOO
http://www.tcl.tk/man/tcl8.6/TclCmd/class.htm
XOTcl
http://media.wu-wien.ac.at/doc/tutorial.html
incr Tcl
http://www.tcl.tk/man/itcl3.1/class.n.html
stooop
http://tcllib.sourceforge.net/doc/stooop_man.html
snit
http://tcllib.sourceforge.net/doc/snit.html

I don't recommend using any other object system than these if you want anything even vaguely "objects and classes" conventional.