[slime-devel] Re: swank reloading problem

Christophe Rhodes csr21 at cam.ac.uk
Mon Jun 19 11:12:09 UTC 2006


Marco Baringer <mb at bese.it> writes:

> Cyrus Harmon <ch-slime at bobobeach.com> writes:
>
>> On further examination, the problem is that swank-backend gets
>> reloaded, causing the definterface forms to fire again, which
>> overwrites the existing methods. The following patch checks to see if
>> the symbol is fbounp before doing the defgeneric and gen-default-impl
>> stuff.
>
> unfortunetly this makes it hard to work on slime (though i'll admit
> that executing the defimplementation forms multiple times doesn't
> happen much an more). maybe it'd be better to set some flag at after
> loading the file and test on that? if someone wants to work on slime
> they just turn that single flag off and continue as if nothing
> happened.

What about the attached patch, which makes DEFINTERFACE consistent
with its documentation string?

Luke Gorrie removed the NO-APPLICABLE-METHOD stuff sometime in June
2004 (revision 1.59 of swank-backend.lisp) with a comment saying
"N-A-M was a stupid idea", but in fact it's a pretty clever idea, I
think, as it solves the problem of generic functions with no arguments.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: foo.diff
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20060619/58af2db0/attachment.ksh>
-------------- next part --------------

Cheers,

Christophe


More information about the slime-devel mailing list