Alex Shinn wrote:

quasiquote is syntax - it happens at compile-time, so to
apply it to dynamic data at runtime you need to call EVAL:

Thanks, I understand it now. I keep thinking of macros as first-class, when they're not. :-(

(Which leads me to wonder, *are* there Lisps/Schemes that have first-class macros? Where you can, for example, pass a macro as an argument to map, the way you can do with a function?)

I guess I'll have to use eval, but I don't think it's going to work if I use this kind of s-expr inside a function? Like

  (define (blah x)
    (sasm (jmp ,x)))

(where SASM is the name of the macro that handles this kind of s-expressions).

--Hans



_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to