[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OPERATION NOT HANDLED
> ...For example, consider a procedure (or operation) that would behave
>like WHERE-DEFINED, except it would return NIL (rather than breaking) if the
>object didn't handle the WHERE-DEFINED operation (e.g., tables and
>read-tables don't).
I think the default body of DEFINE-OPERATION will handle this for you, i.e.,
(define-operation (where-defined foo) nil)
will cause NIL to be returned if WHERE-DEFINED isn't defined.
Scott R. Turner
UCLA Computer Science "Are we controlled by secret forces?"
Domain: srt@ucla.cs.edu
UUCP: ...!{cepu,ihnp4,trwspp,ucbvax}!ucla-cs!srt