no-method ( object generic -- * )


Vocabulary
generic.single

Inputs and outputs
objectan object
generica generic word


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

TUPLE: no-method { object read-only } { generic read-only } ;


USING: kernel ;

IN: generic.single

: no-method ( object generic -- * ) \ no-method boa throw ;


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" ;