Handbook
Glossary
define-simple-generic ( word effect -- )
Factor handbook
»
The language
»
Objects
»
Generic words and methods
»
Generic word introspection
Prev:
define-generic ( word combination effect -- )
Next:
create-method ( class generic -- method )
Vocabulary
generic
.
standard
Inputs
word
a
word
effect
an
effect
Outputs
None
Word description
Defines a generic word with the
standard-combination
method combination and a dispatch position of 0.
See also
generic
,
define-generic
,
GENERIC:
,
GENERIC#:
,
MATH:
,
HOOK:
Definition
USING:
generic
kernel
;
IN:
generic.standard
:
define-simple-generic
( word effect -- )
[
simple-combination
]
dip
define-generic
;