Gerd Moellmann wrote:
> I can't answer this really since I'm not using CLM, but from the PCL
> sources I know that the class prototype is an uninitialized instance
> of its class, created with ALLOCATE-INSTANCE, so all its slots will
> be unbound.  Maybe the CLM inspector doesn't handle unbound slots
> well?

Good, I thought the problem might have something to do with the fact
that the objects in the prototype slot were made by allocate-instance.

Exploring a little further, I don't think it's has anything to do with
the inspector.  It seems like it is related to the CLX classes.

Here's an example of what I'm talking about:

* (pcl::allocate-instance (pcl:class-of (make-instance 'xlib:drawable)))

Unable to display error condition

Restarts:
  0: [ABORT] Return to Top-Level.

Debug  (type H for help)

("DEFMETHOD SLOT-UNBOUND (T T T)" #<unavailable-arg> #<unavailable-arg>
 #<unavailable-arg> #<error printing object> ...)
0] 


Note that the following works fine.:

* (defclass foo () ())
#<STANDARD-CLASS FOO {482BF90D}>
* (pcl::allocate-instance (pcl:class-of (make-instance 'foo)))
#<FOO {480AAEC5}>
* 

BTW, this is not a recently introduced problem --- I checked a Lisp
from May of 2000 and it also failed.

-- 
Fred Gilham                                        [EMAIL PROTECTED]
As much as I hate the product, the lawsuits are ridiculous. We have
known for almost forty years what smoking does to the body. Quitting
is hard, but we tell illegal drug users to stop or go to
prison. Cigarette addicts get money instead! -- Catherine Crier

Reply via email to