Hello,

This might be me not knowing how to use R7RS macros/libraries. I'm using C6.

Whenever I define a macro, say `my-macro`, that calls an auxiliary macro,
`my-auxiliary`, and I only export `my-macro` without exporting `my-auxiliary`
then csc complains with

  Warning: indirect export of syntax binding in module *whatever*: my-auxiliary

But when using the library, `my-auxiliary` is not defined, and everything seems
to work correctly.

Am I doing something wrong or should I ignore the warning?

Cheers,
Hernán

MWE:
  (define-library *whatever*
    (import (scheme base))
    (export my-macro)
    (begin
      (define-syntax my-macro
        (syntax-rules ()
          ((_) (my-auxiliary))))
      (define-syntax my-auxiliary
        (syntax-rules ()
          ((_) 42)))))

Reply via email to