make-consult-quot ( consultation word quot combination -- consult-quot )


Vocabulary
generic

Inputs
consultationan object
worda word
quota quotation
combinationa combination


Outputs
consult-quota quotation


Generic word contract
This generic produces the body quotation that will be used to actually effect a method consultation from the delegate vocabulary.

Notes
This is already implemented for standard-combination and hook-combination, and thus only needs to be specialized if you are implementing CONSULT: for a different kind of combination.

Reasoning
For standard method combinations, this calls the quotation to obtain the consulted object, and then executes the generic word, which naturally dispatches against the object on the stack. This is not sufficient for hook combinations, which must have the generic word executed with a variable bound to the result of the quotation. This generic is what allows for specializing the behavior of the methods that CONSULT: creates.

Definition

GENERIC: make-consult-quot
( consultation word quot combination -- consult-quot )


Methods