2011/3/21 Patrick Li <[email protected]>:
> [...]
> I'm trying to write a macro that will tranform:
> (temp (a b c) do-this do-that do-other)
> into this:
> (do (do-this a b c)
> (do-that a b c)
> (do-other a b c))
> [...]
Try this:
(define-syntax temp
(syntax-rules ()
[(temp args command ...)
(do (command . args) ...)]))
Ciao,
Thomas
--
When C++ is your hammer, every problem looks like your thumb.
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users