generic
Factor documentation > Factor handbook > The language > Objects > Generic words and methods > Generic word introspection
Next:generic? ( object -- ? )


Vocabulary
generic

Class description
The class of generic words, documented in Generic words and methods.

See also
define-generic, define-simple-generic, GENERIC:, GENERIC#, MATH:, HOOK:

Definition
USING: kernel words ;

IN: generic

PREDICATE: generic < word "combination" word-prop >boolean ;


Methods
USING: generic kernel tools.annotations.private ;

M: generic (annotate) [ (annotate) ] curry annotate-generic ;


USING: generic kernel tools.annotations.private ;

M: generic (deep-annotate)
[ (deep-annotate) ] curry annotate-generic ;


USING: generic sequences tools.annotations.private words ;

M: generic (reset) subwords [ (reset) ] each ;


USING: generic help.private help.topics ;

M: generic article-content word-with-methods ;


USING: definitions generic kernel ;

M: generic definition drop f ;


USING: definitions.icons generic kernel ;

M: generic definition-icon
drop "generic-word" definition-icon-path ;


USING: generic generic.single words ;

M: generic dispatch# "combination" word-prop dispatch# ;


USING: assocs generic kernel make words ;

M: generic subwords
[
[ "default-method" word-prop , ]
[ "methods" word-prop values % ]
[ "engines" word-prop % ] tri
] { } make ;


USING: compiler.units definitions generic kernel ;

M: generic update-generic
[ changed-call-sites ] [ remake-generic drop ]
[ changed-conditionally drop ] 2tri ;