class_name

class_name --  gives the name of the class.

Syntax

class_name (class|instance)

		

Arguments

class|instance

A class or instance of a class.

Returns

The name of the class, as a symbol.

Example

Note

This example is based on the class and method developed in method.

    Gamma> y = Square;
    (defclass Square RegPolygon [(area . (defun Square.area (self) (sqr (@ self length))))][length (sides . 4)])
    Gamma> class_name(y);
    Square
    Gamma> box = new(Square);
    {Square (length) (sides . 4)}
    Gamma> class_name(box);
    Square
    Gamma>  
    		

See Also

class_of

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.