no-method ( arguments generic -- * ) - Factor Documentation

no-method ( arguments generic -- * )


Vocabulary
multi-methods

Definition
IN: multi-methods

ERROR: no-method arguments generic ;


Methods
USING: accessors assocs classes debugger io kernel multi-methods
prettyprint sequences ;

M: no-method error.
"Type check error" print nl "Generic word " write
dup generic>> pprint
" does not have a method applicable to inputs:" print
dup arguments>> short. nl "Inputs have signature:" print
dup arguments>> [ class-of ] map niceify-method .
nl "Available methods: " print
generic>> methods canonicalize-specializers drop
sort-methods keys [ niceify-method ] map stack. ;

AltStyle によって変換されたページ (->オリジナル) /