[Snow-users-list] Macro expansion and snow ?

Adrien Pierard pierarda at iro.umontreal.ca
Tue Sep 4 19:13:54 EDT 2007


I have an issue right now, and I wonder if this can be fixed easily, 
since its depends on the macro system of the host...

Here is a trivial example that fails:

- - - - - - - - - - - - - - - - - 
(package*
 test-pi/v1.0.1
 (require: pi/v1))

(define-macro* (foo x)
 (let ((v (pi-digits ,x)))
        `(display ,v)))

(foo 42)
- - - - - - - - - - - - - - - - - 
snow -- test-pi.scm 
*** ERROR IN #<procedure #2>, "test-pi.scm"@5.12 -- Unbound variable: pi-digits
- - - - - - - - - - - - - - - - - 

As we see, the values imported by snow seem not to be usable during
macro expansion...
Any way to do that ?


Adrien

-- 
"I am not a Church numeral; I am a free variable!"
(The Scheme Underground)
For every complex problem, there is a solution that is simple, neat, and wrong.


More information about the Snow-users-list mailing list