How to use existing macros - e.g. `let-values` - f

2020-02-15 02:32发布

问题:

How do I call built-in Chicken Scheme macros - specifically let-values in this instance - from my own macros?

(define-syntax ...
 (ir-macro-transformer
  (lambda (expr inject compare)
   (let-values (...) ...
    ...

unbound variable: let-values

回答1:

This is a bit of a bug I'm afraid. A simple (import-for-syntax chicken) did the trick for me.

In CHICKEN 5, this works without such a strange import.