[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Generic Function parameter list



Is there any way to get a generic function (or method object) to branch
on specific argtypes if the significant argtype is a class?

E.g.,

(defmethod tst ((arg t)) 'gen)

(defmethod tst ((arg frame-item) 'frame) ;frame-item is a class, all instances
; of frame-item or its subclasses will et dispatched to here.

But say I have this:  

(defclass frame2 (frame-item) ... )

and  I want my tst to branch on IT as well.  Can I do this?

..........................................................................
Jeffrey Sullivan			  | University of Pittsburgh
jas@cadre.dsl.pittsburgh.edu		  | Intelligent Systems Studies Program
jasper@PittVMS.BITNET, jasst3@cisunx.UUCP | Graduate Student