Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
define-simple-generic ( word effect -- )
Factor documentation
>
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 and outputs
word
a word
effect
an
effect
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
;