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

Next:GENERIC#:


Vocabulary
syntax

Syntax
GENERIC: word ( stack -- effect )


Inputs
None

Outputs
None

Word description
Defines a new generic word in the current vocabulary. The word dispatches on the topmost stack element. 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