[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] define-for-syntax & modules

From: Evan Hanson
Subject: [Chicken-users] define-for-syntax & modules
Date: Tue, 27 Sep 2011 09:29:58 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

It appears that modules either leak define-for-syntax bindings, or
aren't meant to contain them. If the latter is the case, please ignore.
However, this seems unintuitive.

  (module test ()
    (import scheme chicken)
    (define-for-syntax + string-append))

  $ csi -nq
  #;1> (use test)
  ; loading ./test.import.scm ...
  ; loading /usr/lib/chicken/6/ ...
  ; loading /usr/lib/chicken/6/ ...
  ; loading ./ ...
  #;2> (+ "a" "b" "c")

I found a note on import-for-syntax in the manual which looks like it
might refer to the same issue, but I'm not certain. In any case, I
thought I'd bring it up in case this is a bug, or if there's something
I'm missing.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]