This is the mail archive of the guile@cygnus.com mailing list for the guile project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
i'm trying to have Guile be able to load a file w/ some syntax extensions w/ code similar to: (define-module (some place)) (define-public (load-special-file filename) (let-syntax ((a (syntax-rules () (...))) (b (syntax-rules () (...))) ...) (load filename))) unfortunately, this doesn't work. after looking at boot-9.scm, i tried `basic-load', but that didn't work either. in both cases, the error "unbound variable: a" occurs. when everything is done at the top level (using `define-syntax' and `define' w/o `define-module'), things seem to work fine. my conclusion is that this approach must have some fundamental flaw due to lack of understanding of fine-detail interaction between the (current) module system, loading and syntactic extension. can anyone suggest a better approach? thanks, thi