[Openmcl-devel] advise : (:do-it-with-args . new-args)
budden73 at gmail.com
Sun Jan 7 14:35:21 PST 2018
My code is here:
It contains a portability layer to generalize SBCL and CCL and
contains a patch to CCL's advise facility.
2018-01-07 18:08 GMT+03:00, 73budden . <budden73 at gmail.com>:
> Hi! Is there any sacred sense in having (:do-it) to not accept any
> parameters and use original parameters? What if we want fake
> parameters while advising?
> To compare,
> and https://github.com/sbcl/sbcl/blob/master/src/code/fdefinition.lisp#L220
> allow to call "next advice" with modified parameters.
> It seem rather trivial to fix that: just add (:do-it-with-new-args)
> into advise expansion. Several lines should be added here:
> Is there any chance of acception of this patch? Of course, I can write
> my own hotpatch, but I believe this would make sense for all users,
> because CL would obtain more or less uniform advice facility which
> behaves in a similar way in LW, CCL and SBCL (actually I'm using some
> kind of portabe "decorate function" facility, but it does not support
> multiple advices for one function currently).
More information about the Openmcl-devel