once-only lisp macro, yet another implementation -


I am trying to learn Lissep from Peter Sebel's book "Practical Common Lisp". In, this time I came in the only macro. At the bottom of that page, an implementation is given.

I already tried to apply my own macro for the same purpose, but there was a bug in it as it has been said.

This time I have made another alternative implementation, hopefully I would like to know that my implementation is correct from time to time due to bug fixing.

  (defmacro my-once-only (and the rest of the argument) and the rest of the body) (but (gensym (collect for X in xx for loop (gensym))) ( ) (Loose for X in gensyms for x) (Assemble in AGR (G, X)), Gather (loop for X in Argus (x, G) (x) (Gensym))) () , `, (, X, g))),),),) @),),),),  / former> 


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -