• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Common Lisp: How to make just one method unbound?

Resolved: Common Lisp: How to make just one method unbound?

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

Suppose I have a few classes
with their corresponding methods
How can I remove the dog-specialized method while keeping the remaining make-sounds? Something like
I know that I can use fmakunbound but that makes the entire generic function and its methods unbound; consequently I have to recompile make-sound for mammals and cats, which is fine in such a small example but quickly becomes a hassle for more complicated class structures.
From what I understand, defmethod adds a method to a generic function, so I imagine there could be an operation to reverse it.

Answer:

I think you are looking for remove-method:

If you have better answer, please add a comment about this, thank you!

common-lisp dynamic-typing inheritance methods
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: correct policy to get secrets on local go app

22/03/2023

Resolved: Vue 3 watchEffect dependency tracking after asynchronous code

22/03/2023

Resolved: Watching state object in pinia doesn’t fire when object changes

22/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.