|
From: | Stefan Israelsson Tampe |
Subject: | Re: problems evaluating code depending on version |
Date: | Thu, 17 May 2012 14:47:09 +0200 |
On Wed 16 May 2012 23:32, Stefan Israelsson Tampe <address@hidden> writes:Here the macro introduces a new identifier, fluid-let-syntax. But its
> (define-syntax guile-stuff
> (lambda (x)
> (syntax-case x ()
> (_
> (let ((q (ver)))
> (cond
> ((eq? q 'v2.0)
> #'(begin 1))
> ((eq? q 'v2.1)
> #'(begin
> (define-syntax-rule (fluid-let-syntax . l)
> (syntax-parametrize . l))
> (export fluid-let-syntax)))
> (else (error "not supported version"))))))))
context is not that of the (guile-stuff) _expression_. If you did
(datum->syntax 'fluid-let-syntax x) that might work.
In general cond-expand is better. I just added a guile-2.2 feature on
master. Use that instead.
But in this case, better to just change both versions to use
syntax-parameterize :)
Andy
--
http://wingolog.org/
[Prev in Thread] | Current Thread | [Next in Thread] |