The obstcl Object class
You don't have to inherit from the Object class when you write an
obstcl object, but it's probably safest. It will provide your
class with the methods cget, configure, and
super, and a default constructor/destructor pair.
- object cget option
- Return the value of the given option, or throw an error
if the option is not defined.
- object configure ?option? ?value option value... ?
- With no arguments, return a list of three-lists, where each
three-list is the option name, default value, and current value. With
one argument, return a list of three elements containing the option
name, default value, and current value. With more arguments, set each
option to the given value.
- object super method ?arg arg...?
- Call the given method in a superclass of the current
class. (Unfortunately, I could figure out no way to
avoid having to provide the method argument.)