GENERIC:
Factor handbook > The language > Objects > Generic words and methods

Next:GENERIC#


Vocabulary
syntax

Syntax
GENERIC: word ( stack -- effect )


Inputs and outputs
worda 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