(define-macro (define-cool-macro decl . body) <br> `(begin <br> (define-macro ,decl ,@body) <br>
(define-macro ,(cons <br> (string->symbol (string-append (symbol->string (car decl)) "-dbg")) <br> (cdr decl)) ,@body))) <br>
<br>(define-cool-macro (fn . body) `(lambda ,@body)) <br> <br>
(pp (fn-dbg (x) (+ x 2))) <br> <br><br>Now, does anyone see anything wrong with define-cool-macro, or some way/something that may resulted in unexpected sideeffects (along the lines of accidently introducing variables in macros).<br>
<br>Thanks!<br>