Konrad Hinsen on Nostr: Question to #CommonLisp experts: Given a generic function and a list of arguments, is ...
Question to #CommonLisp experts: Given a generic function and a list of arguments, is there a way to obtain the method(s) that will be invoked?
In principle, I can use closer-mop to get the methods and their specializers and work out the method combination myself. But maybe someone has done the work already, or maybe there's way to use the compiler's implementation of method combination.
Use case: code exploration, debugging, etc. Not for runtime use, so efficiency is not critical.
Published at
2024-05-15 14:49:28Event JSON
{
"id": "aa65f1010a628416ee7c9809c9a956aa8ad4f9ff2f1f9304c0c734f846278c00",
"pubkey": "7b2a3a0e5f13fe11766dbac14833e1bc89c6aea2dfae8dfc6fe70c35859cffd7",
"created_at": 1715784568,
"kind": 1,
"tags": [
[
"t",
"commonlisp"
],
[
"proxy",
"https://scholar.social/users/khinsen/statuses/112445657483914281",
"activitypub"
]
],
"content": "Question to #CommonLisp experts: Given a generic function and a list of arguments, is there a way to obtain the method(s) that will be invoked?\n\nIn principle, I can use closer-mop to get the methods and their specializers and work out the method combination myself. But maybe someone has done the work already, or maybe there's way to use the compiler's implementation of method combination.\n\nUse case: code exploration, debugging, etc. Not for runtime use, so efficiency is not critical.",
"sig": "11afd446b08bf7eb72e144ff2b711c03488bf8542bf7395d369737b307a2e6ab0d374ec63a4be4431bbb0871b0d6db441ad6fc45a570e66b42ed25e20a7abdae"
}