home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / ObjectTcl-1.1 / docs / Overview.txt < prev   
Encoding:
INI File  |  1995-06-30  |  2.1 KB  |  51 lines

  1. [Image]
  2.     ------------------------------------------------------------------------
  3.  
  4.  
  5. Caveat: This overview does not attempt to provide an introduction to object
  6. orientation.
  7.  
  8. Object Tcl is a standard Tcl extension package that makes it possible to use
  9. object oriented programming concepts from within Tcl and, if required, provides
  10. a tight object oriented coupling to C++.
  11.  
  12. From the Tcl perspective, Object Tcl provides additional commands to support
  13. the description of classes of objects, along with attributes and methods, and
  14. manipulation of those classes. The concepts introduced into Tcl are:
  15.  
  16.       Class
  17.       Object
  18.       Method
  19.       Attribute
  20.       Class Method
  21.       Class Attribute
  22.       Object Reference
  23.  
  24. In Object Tcl, a class description contains details of its behaviors, via
  25. methods, and state, via attributes. Object Tcl classes may have methods and
  26. attributes that have class scope or object scope.
  27.  
  28. Object Tcl classes may inherit from other classes, described in Object Tcl or
  29. C++, as a way of structuring and reusing common code. Both single and multiple
  30. inheritance is available.
  31.  
  32. Object Tcl classes may be instantiated to create objects of that class. The
  33. instantiation of a class results in an object reference that may be used to
  34. invoke methods upon the object. Finally, objects may be discarded.
  35.  
  36. A primary objective of Object Tcl is to support the reuse of classes that are
  37. described in C++. Object Tcl makes it possible to create new classes in Tcl
  38. that inherit from C++ classes. The dynamic binding of virtual methods crosses
  39. the boundary from Tcl to C++ and, if the method is called on the object from
  40. C++, will cross over into Tcl if the method is defined in the Tcl subclass.
  41.  
  42. The tight coupling to C++ makes it possible to build a class hierarchy or
  43. framework in C++ that can then be extended using the interpreted Tcl language.
  44.     ------------------------------------------------------------------------
  45.  
  46. Object Tcl | Overview | Language Reference | C++ Binding Reference | Example |
  47. Source Code
  48.     ------------------------------------------------------------------------
  49.  
  50. otcl@x.co.uk
  51.