home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / TCL / ITCL / _ITCL.TAR / usr / lib / itcl / tests / Bar.tcl < prev    next >
Encoding:
Text File  |  1994-03-21  |  1.9 KB  |  53 lines

  1. #
  2. # Test class for [incr Tcl] test suite
  3. # ----------------------------------------------------------------------
  4. #   AUTHOR:  Michael J. McLennan       Phone: (610)712-2842
  5. #            AT&T Bell Laboratories   E-mail: michael.mclennan@att.com
  6. #
  7. #      RCS:  Bar.tcl,v 1.1.1.1 1994/03/21 22:09:50 mmc Exp
  8. # ----------------------------------------------------------------------
  9. #               Copyright (c) 1993  AT&T Bell Laboratories
  10. # ======================================================================
  11. # Permission to use, copy, modify, and distribute this software and its
  12. # documentation for any purpose and without fee is hereby granted,
  13. # provided that the above copyright notice appear in all copies and that
  14. # both that the copyright notice and warranty disclaimer appear in
  15. # supporting documentation, and that the names of AT&T Bell Laboratories
  16. # any of their entities not be used in advertising or publicity
  17. # pertaining to distribution of the software without specific, written
  18. # prior permission.
  19. #
  20. # AT&T disclaims all warranties with regard to this software, including
  21. # all implied warranties of merchantability and fitness.  In no event
  22. # shall AT&T be liable for any special, indirect or consequential
  23. # damages or any damages whatsoever resulting from loss of use, data or
  24. # profits, whether in an action of contract, negligence or other
  25. # tortuous action, arising out of or in connection with the use or
  26. # performance of this software.
  27. # ======================================================================
  28.  
  29. itcl_class Bar {
  30.     #
  31.     #  Constructor/destructor add their name to a global var for
  32.     #  tracking implicit constructors/destructors
  33.     #
  34.     constructor {config} {
  35.         global WATCH
  36.         lappend WATCH [info class]
  37.     }
  38.     destructor {
  39.         global WATCH
  40.         lappend WATCH [info class]
  41.     }
  42.  
  43.     method config {config} {
  44.         return $config
  45.     }
  46.  
  47.     #
  48.     #  Define variables that will be shadowed by another class.
  49.     #
  50.     public blit
  51.     protected _blit
  52. }
  53.