From: Neil Goldman

Subject: RE: Different argument list for same method name

Date: 2000-11-14 12:21

Remember that the "name" of a generic function is a symbol, and the identity
of a symbol consists of both its symbol-name, like "ADD", AND its
symbol-package.  If your two classes are independent, as you say, then
perhaps there is no reason for these two methods to belong to the same
generic function, even though  for  both  the string "ADD" seems like a good
name.  The solution in that case is to name them both "ADD", but in
different packages.


Neil Goldman              Tel:   (310)578-5350 x204
Teknowledge Corporation   Fax:   (310)578-5710
4640 Admiralty Way
Marina del Rey, CA 90292

> -----Original Message----- > From: David Kaasen <nvg.ntnu.no] at [mailto:kaasen> > Sent: Tuesday, November 14, 2000 3:15 AM > To: <cs.berkeley.edu at allegro-cl> > Subject: Different argument list for same method name > > > Hello! > > I am writing a program in LISP, using CLOS. I designed > two independent classes, both with a method called 'add'. > The problem is, the argument list of the two add methods > is different, which is not allowed in CLOS. > ...