I want to alias a function as another lexically scoped function. The function to be aliased is returned by another function, which is the reason I want to alias it - so it can be cached. I think this was working but I abandoned it when I read somewhere that fdefinition returns a global:
Is there some obscure macro that does what I'm wanting, or maybe I can use whatever such a macro would use?
(setf (fdefinition `foo) #'bar)This could probably work, maybe with some inspection to accept the correct arguments, but doesn't really solve anything:(labels (foo (&rest args) (bar @,args)))Grr...Is there some obscure macro that does what I'm wanting, or maybe I can use whatever such a macro would use?
I'm off my grokker.
- Chris
- Chris