On Mon, Apr 08, 2002 at 11:13:16AM -0500, William Harold Newman wrote:
> On Tue, Apr 09, 2002 at 12:35:47AM +1000, Brian Spilsbury wrote:
> > looks like a problem with forward classes in sbcl-0.7.0.
> > ; (defclass basic-gadget () ()) ; <- uncommenting this fixes it...
> > (defclass standard-gadget (basic-gadget) ())
> > (defclass basic-gadget () ())
> > debugger invoked on condition of type UNBOUND-SLOT:
> > The slot SB-PCL::DIRECT-SUBCLASSES is unbound in the object
> > #<SB-PCL::STANDARD-CLASS "unbound">.
> > Otherwise you might like to add it to the bugs list or something.
> Thank you. It's now bug #155 in my working copy of SBCL, which will
> probably be committed later today.
> (Since there are now several maintainers and I'm supposed to linearize
> the stream of bugs, I wanted to give it a number promptly. But I
> actually don't know CLOS well enough to be sure what the system is
> supposed to do in this case, so I'm taking your word for it that it's
> a bug.)
It is a bug; ANSI says in defclass that the superclasses don't need to
be defined at class-definition time (though they do at instantiation
The attached patch appears to fix it for me, though I'm no PCL internals
expert; the bug would have been introduced when iterate was removed from
PCL (0.7pre.97 or so).
Jesus College, Cambridge, CB5 8BL +44 1223 510 299
http://www-jcsu.jesus.cam.ac.uk/~csr21/ (defun pling-dollar
(str schar arg) (first (last +))) (make-dispatch-macro-character #\! t)
(set-dispatch-macro-character #\! #\$ #'pling-dollar)