Search
Tuesday, 17th of September 2019, 8:56:28 UTC
14:39:28
Shinmera
If I wanted to programmatically construct a method and attach it to a generic function, is there some other way I should go about it than to (add-method #'foo (make-instance 'standard-method ...)) ?
14:40:29
Bike
nope that's about the shape of it
14:45:10
Shinmera
What should the function initarg be? The result of make-method-lambda, or something else?
14:46:01
shka__
uh, it is complex but there is example in the amop
14:46:11
Shinmera
Sigh, this is all so much more annoying than just (eval `(defmethod ..))
14:47:00
shka__
but it is the right thing to do
14:47:36
Shinmera
Maybe. I already don't like that I have to pull in the MOP to do this, since I can't access the lambda-list otherwise.
14:48:15
shka__
https://franz.com/support/documentation/current/doc/mop/concepts.html
14:48:36
shka__
just any function will do as it seems
14:49:31
Shinmera
Are we looking at the same thing? I see the lambda from make-method-lambda being used.
14:50:51
shka__
honestly each time i have to do anything with add-method i need to find example again
14:58:56
Bike
and as in the example you also need extra initargs that make-method-lambda can return
Tuesday, 17th of September 2019, 20:56:28 UTC