Extending traces with OAT: an object attribute trace package for Tcl/Tk

  • Authors:
  • Alex Safonov;Joseph A. Konstan;John V. Carlis;Brian Bailey

  • Affiliations:
  • Department of Computer Science, University of Minnesota;Department of Computer Science, University of Minnesota;Department of Computer Science, University of Minnesota;Department of Computer Science, University of Minnesota

  • Venue:
  • TCLTK'97 Proceedings of the 5th conference on Annual Tcl/Tk Workshop 1997 - Volume 5
  • Year:
  • 1997

Quantified Score

Hi-index 0.00

Visualization

Abstract

Tcl supports variable traces, which associate arbitrary scripts with variable reads, writes and unsets. We developed OAT (Object Attribute Traces), a protocol for extending traces to attributes of arbitrary Tcl "objects." We wrote several OAT-based extensions including TkOAT, which provides traces on attributes of Tk widgets and canvas items. The OAT protocol and derived extensions bring the benefits of more expressive constraints to Tcl/Tk applications by providing extended traces. OAT requires no changes to the Tcl core and is implemented as a loadable library; OAT-based extended trace packages introduce minimal changes to the code of existing extensions (Tk, CMT, etc.). The new version of our formula manager, TclProp, takes advantage of extended traces provided by OAT.