CLASS

tcl.lang.InternalRep -- This class is an abstract base class of all the internal representation types in Tcl.

METHODS

void dispose()

InternalRep duplicate()

String toString()

DESCRIPTION

The InternalRep class is an abstract base class of all the internal representation types in Tcl. All InternalRep subclasses must implement the following three methods.

dispose
The dispose method is called when an InternalRep is no longer used by Tcl. It should free all the resources used by this InternalRep instance.

duplicate
The duplicate method is called when an exact copy of the InternalRep is needed during a copy-on-write operation.

toString
The toString method is called when a string representation is needed for a TclObject.

EQUIVALENT C FUNCTIONS

Tcl_ObjType.freeProc, Tcl_ObjType.dupIntRepProc, Tcl_ObjType.updateStringProc

SEE ALSO

TclObject, TclList, TclIndex, TclDouble, TclString, TclInteger, TclBoolean, ReflectObject

KEYWORDS

internal representation, object, object type, abstract class
Copyright © 1996-1998 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.