Hi There
> is there a command that destroy a generic function and all the
> methods associated to the generic function loaded in the system?
I think that fmakunbound is your friend (this function was created in
the early days of Lisp when the letter #\e was in short supply.)
Note that you can use remove-method to get rid of an individual
method. The only tricky part is finding the method that you want to
remove:
Here is an example that removes any methods on db-execute-select-plan
whose
first specializer is of type 'myclass. With more work, you can narrow
down to only :before methods or what have you.
(let* ((gf #'db-execute-select-plan))
(loop for method in (generic-function-methods gf)
when (eq (class-name (first (method-specializers method)))
'myclass) do
(remove-method gf method)))
HTH
> Thanks,
>
> franZ
>
>
> --
> Linux Registered User: #414858
>
> P Funking Band
> http://www.perugiafunkingband.it
> http://www.myspace.com/perugiafunkingband
> _______________________________________________
> Gardeners mailing list
> [email protected]
> http://www.lispniks.com/mailman/listinfo/gardeners
--
Gary Warren King, metabang.com
Cell: (413) 559 8738
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM * gwking on twitter
_______________________________________________
Gardeners mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/gardeners