chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] macro and module question from newbie.


From: Park SungMin
Subject: [Chicken-users] macro and module question from newbie.
Date: Fri, 06 Mar 2015 05:44:29 +0900

hello, I'm chicken/scheme newbie.
I'm long time use CommonLisp. but I feel difference with scheme.
I writing first test program.
but....

(module foo (bar)
  (import chicken scheme)
  (define m 10)
  (define-syntax bar
      (ir-macro-transformer
          (lambda (expr a b)
              `(+ m ,@(cdr expr))))))

(import foo)
(bar (+ 10 20))

I got Error: unbound variable: m

I want result 40. If export with 'm' ..it works.
but I'm not want export variable 'm'.....

plz help me!  




reply via email to

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