Vocabulary
classes

Inputs
classa class


Outputs
supera class


Word description
Outputs the superclass of a class. All instances of this class are also instances of the superclass.

Examples
USING: classes prettyprint ; t superclass-of .
word


See also
superclasses-of, subclass-of?

Definition


: superclass-of ( class -- super )
dup class? [ "superclass" word-prop ] [ drop f ] if ;