Handbook
Glossary
forget-class ( class -- )
Factor handbook
»
The language
»
Objects
»
Classes
»
Class predicate words
Prev:
reset-class ( class -- )
Next:
forget-methods ( class -- )
Vocabulary
classes
Inputs
class
a
class
Outputs
None
Word description
Removes a class by forgetting all of the methods defined on that class and all of the methods generated when that class was defined. Also resets any caches that may contain that class.
Definition
USING:
classes.private
combinators
kernel
;
IN:
classes
:
forget-class
( class -- )
dup
f
check-metaclass
{
[
drop
forget-predicate
]
[
drop
forget-methods
]
[
drop
implementors-map-
]
[
drop
update-map-
]
[
drop
reset-class
]
[
2drop
reset-caches
]
[
?metaclass-changed
]
}
2cleave
;