Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC

Function class

class className [superClass] memberList

Creates a new class object.

Parameters:
className - Symbol that will identify the new class.
superClass - Symbol identifying the super class of the new class.
memberList - List of symbols representing the members of the new class.
Returns:
A reference to the new class object.

Creates a new class object and stores a reference to it in the global variable identified by the symbol className.

The class function could be implemented using the new-class function like this:

global class args {
    global [car $args] [apply new-class [cdr $args]]
}


Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC
Report a bug or request new features
© 2002