GENERIC:
Factor documentation
>
Factor handbook
>
The language
>
Objects
>
Generic words and methods
Next:
GENERIC#
Vocabulary
syntax
Syntax
GENERIC: word ( stack -- effect )
Inputs and outputs
word
a new word to define
Word description
Defines a new generic word in the current vocabulary. Initially, it contains no methods, and thus will throw a
no-method
error when called.
See also
generic
,
define-generic
,
define-simple-generic
,
GENERIC#
,
MATH:
,
HOOK:
Definition
USING:
generic.parser
generic.standard
;
IN:
syntax
SYNTAX:
GENERIC:
[
simple-combination
]
(GENERIC:)
;