Handbook
Glossary
effective-method ( generic -- method )
Factor handbook
»
The language
»
Objects
»
Generic words and methods
»
Generic word introspection
Prev:
?lookup-method ( class generic -- method/f )
Next:
implementors ( class/classes -- seq )
Vocabulary
generic
Inputs
generic
an
object
Outputs
method
an
object
Definition
IN:
generic
GENERIC:
effective-method
( generic -- method )
Methods
USING:
accessors
generic
generic.hook
generic.single
kernel
namespaces
words
;
M:
hook-generic
effective-method
[
"combination"
word-prop
var>>
get
]
keep
method-for-object
;
USING:
accessors
generic
generic.single
generic.standard
kernel
sequences
words
;
M:
standard-generic
effective-method
[
get-datastack
]
dip
[
"combination"
word-prop
#>>
swap
<reversed>
nth
]
keep
method-for-object
;