TclJava Library Procedures - InternalRep manual page

### CLASS

tcl.lang.InternalRep -- An interface for any internal representations that can be stored in a TclObject.

### METHODS

void dispose()

InternalRep duplicate()

String toString()

### DESCRIPTION

The InternalRep interface defines the signatures that must be supported by any class that is going to be an internal representation in Tcl. The following methods must be implemented:

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

    Copyright © 1996-1998 Sun Microsystems, Inc.
    Copyright © 1995-1997 Roger E. Critchlow Jr.