crunch_skip begin DOC "class Base" { NAME Base - The basic class inherited by all obTcl objects SYNOPSIS Base new - Creates an object of the simplest possible class. DESCRIPTION All classes inherits the Base class automatically. The Base class provides methods that are essential for manipulating obTcl-objects, such as `info' and `destroy'. METHODS Base provides the following generic methods to all objects: new - EXPERIMENTAL! Arranges to create a new object of the class of the invoking object. instance - EXPERIMENTAL! Arranges to create a new object of the class of the invoking object. This method differs from `new' by NOT automatically invoking the `init' method of the new object. One possible usage: Create a replacement for the normal class object -a replacement which has no hard-coded methods (this will need careful design though). init - Does nothing. The init method is automatically invoked whenever an object is created with `new'. destroy - Frees all instance variables of the object, and the object itself. class - Returns the class of the object. set name ?value? - Sets the instance variable `name' to value. If no value is specified, the current value is returned. Mainly used for debugging purposes. info - Returns information about the object. See INFO below. eval