Handbook
Glossary
superclasses-of ( class -- supers )
Factor handbook
»
The language
»
Objects
»
Classes
Prev:
superclass-of ( class -- super )
Next:
subclass-of? ( class superclass -- ? )
Vocabulary
classes
Inputs
class
a
class
Outputs
supers
a
sequence
Word description
Outputs a sequence of superclasses of a class along with the class itself.
Examples
USING: classes prettyprint ; t superclasses-of .
{ word t }
See also
superclass-of
,
subclass-of?
Definition
USING:
sequences
;
IN:
classes
:
superclasses-of
( class -- supers )
[
superclass-of
]
follow
reverse!
;