[pro] substitution macro lisp extension?

David McClain dbm at refined-audiometrics.com
Tue Sep 21 21:42:07 UTC 2010


On Sep 21, 2010, at 10:48, Mark H. David wrote:

>   Is there any well-known implementation of a macro similar to old  
> Lisp Machine's defsubst,
> but not as fancy, one that simply emits a macro after doing a  
> reasonable, if less than
> perfect, attempt to do substitutions and guarantee first-to-last  
> arg once-and-once-only evaluation?
>
> I realize that most people just use declare inline for this kind of  
> thing.  Or define a macro like
> defsubst just to emit a defun with a declare-inline declaration.  I  
> would like something that's
> different: something that always emits a macro def given a function- 
> like semantics for
> args and body.
>
> It's a pretty simple thing, but I was wondering if it's sitting  
> around in a library somewhere.
> What's out there?
>

Isn't this what symbol-macrolet, macrolet, and define-compiler-macro  
are for?

Dr. David McClain
Chief Technical Officer
Refined Audiometrics Laboratory
4391 N. Camino Ferreo
Tucson, AZ  85750

email: dbm at refined-audiometrics.com
phone: 1.520.390.3995
web: http://refined-audiometrics.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20100921/b6e24d08/attachment.html>


More information about the pro mailing list