Marco Baringer mb@bese.it writes:
Cyrus Harmon ch-slime@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.
Cheers,
Christophe