Hi, I encountered a problem that previously defined macro can not be used inside other macro defination.
It seems that newly defined syntax does not available in macro expansion environment, is it intended? Here are some simplified code: ---8<--- (define-syntax fn (syntax-rules () ((fn exp ...) (lambda exp ...)))) (define-syntax macro (er-macro-transformer (lambda (form rename compare) (let ((f (fn (x) x))) `(list ,@(map f form)))))) --->8--- In 4.8.0.3, repl complains with: ---8<--- Note: the following toplevel variables are referenced but unbound: fn x x --->8--- Regards, Xin Wang
_______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users