Re: (match ...) error inside (define-syntax ...)

2010-06-16 Thread Ludovic Courtès
Hello! Andy Wingo writes: > In short: use something other than `match', or contribute a hygienic > implementation of `match' :) The plan is to switch to Alex Shinn’s implementation [0], which uses hygienic macros and intends to be compatible. Thanks, Ludo’. [0] http://synthcode.com/scheme/mat

Re: (match ...) error inside (define-syntax ...)

2010-06-15 Thread Andy Wingo
Hi, On Tue 15 Jun 2010 11:53, Tentaclius writes: > (define-syntax test >   (syntax-rules () >      ((test) >       (lambda args >         (match args Guile's match implementation implemented using define-macro, so it is not hygienic. `args' is produced by the expansion of a

(match ...) error inside (define-syntax ...)

2010-06-15 Thread Tentaclius
Hi all, I met this problem when having some experiments with define-syntax. Just cannot understand what I do wrong. (define-syntax test (syntax-rules () ((test) (lambda args (match args ('a (display "Test:a\n")) ('b (display "Test:b\n"))