Article View: comp.lang.clos
Article #262Why do SLOT-{UNBOUND,NOT-FOUND} take class argument?
From: Barry Margolin
Date: Wed, 05 Dec 1990 07:12
Date: Wed, 05 Dec 1990 07:12
13 lines
1035 bytes
1035 bytes
Why do the SLOT-UNBOUND and SLOT-NOT-FOUND generic functions take the class
of the object as an argument? They already take the object as an argument,
so class-specific behavior can be done by specializing on the object's
type. These functions aren't part of the meta-object protocol, so why
should they need to be able to specialize on the metaclass? Wouldn't it
have been more appropriate to have done this in the same way as SLOT-VALUE:
by defining SLOT-{UNBOUND,NOT-FOUND}-USING-CLASS meta-object g.f.'s that
take a class argument?
--
Barry Margolin, Thinking Machines Corp.
barmar@think.com
{uunet,harvard}!think!barmar
Technical Details
Message-ID:
<1990Dec5.071217.26391@Think.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!news
From: barmar@think (Barry Margolin)
Newsgroups: comp.lang.clos
Subject: Why do SLOT-{UNBOUND,NOT-FOUND} take class argument?
Message-ID: <1990Dec5.071217.26391@Think.COM>
Date: 5 Dec 90 07:12:17 GMT
Sender: news@Think.COM
Organization: Thinking Machines Corporation, Cambridge MA, USA
Lines: 13