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

no-method ( object generic -- * )


Vocabulary
generic .single

Inputs
object an object
generic a generic word


Outputs
None

Word description
Throws a no-method error.

Error description
Thrown by the generic word to indicate it does not have a method for the class of object.

Definition
IN: generic.single

ERROR: no-method object generic ;


Methods
USING: accessors classes debugger generic.single io kernel
prettyprint ;

M: no-method error.
"Generic word " write dup generic>> pprint
" does not define a method for the " write
dup object>> class-of pprint " class." print
"Dispatching on object: " write object>> short. ;


USING: generic.single kernel summary ;

M: no-method summary drop "No suitable method" ;

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