[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Generic Function parameter list
- To: commonloops.pa@Xerox.COM
- Subject: Generic Function parameter list
- From: jas@cadre.dsl.pittsburgh.edu (Jeffrey A. Sullivan)
- Date: Mon, 18 Apr 88 20:42:18 id AA15863; Mon, 18 Apr 88 20:42:18
- Cc: jas@dsl.pittsburgh.edu
- Redistributed: commonloops.pa
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