Vocabularygeneric.standardClass descriptionPerforms standard method combination.
Generic words using the standard method combination dispatch on the class of the object at the given stack position, where 0 is the top of the stack, 1 is the object underneath, and 2 is the next one under that. A
no-method error is thrown if no suitable method is defined on the class.
ExamplesA generic word for append strings and characters to a sequence, dispatching on the object underneath the top of the stack:
GENERIC#: build-string 1 ( elt str -- )
M: string build-string swap push-all ;
M: integer build-string push ;
See alsohook-combinationDefinitionMethods