Why no SYMBOL-MACRO-FUNCTION?
- From: Pillsy <pillsbury@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 07:04:42 -0700
It's not so hard to find the expansion function associated with an
ordinary macro---you just use MACRO-FUNCTION. Finding information
about the function or value associated with a symbol is similarly
straightforward. There doesn't seem to be as good a way for doing the
same with a symbol: AFAIK the best you can do is check the second
return value of macroexpand.
There's also no good way to get rid of a symbol-macro definition for a
symbol; FMAKUNBOUND works for regular macros, but for some reason
MAKUNBOUND doesn't work for symbol macros,
These have all been things I've wanted to do on occasion (for
debugging purposes), and it seems a little strange that I can't.
Cheers,
Pillsy
.
- Follow-Ups:
- Re: Why no SYMBOL-MACRO-FUNCTION?
- From: Kalle Olavi Niemitalo
- Re: Why no SYMBOL-MACRO-FUNCTION?
- From: Kaz Kylheku
- Re: Why no SYMBOL-MACRO-FUNCTION?
- Prev by Date: Database bindings development ?
- Next by Date: Re: Is Lisp a Blub?
- Previous by thread: Database bindings development ?
- Next by thread: Re: Why no SYMBOL-MACRO-FUNCTION?
- Index(es):