bug-guile
[Top][All Lists]
Advanced

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

bug#20546: Syntax bug in master branch (till d99fedc5fd38c0)


From: Nala Ginrut
Subject: bug#20546: Syntax bug in master branch (till d99fedc5fd38c0)
Date: Mon, 11 May 2015 18:29:26 +0800

I'm using master branch (till d99fedc5fd38c0), and I found this code
can't run in 2.1, but works in 2.0:

---------------------------------code-------------------------------
(define-syntax define-art
  (lambda (x)
   (syntax-case x ()
    ((_ name) (identifier? #'name)
     #`(begin
        (define name 2)
        (define #,(datum->syntax #'name
                  (symbol-append 'define- (syntax->datum #'name)))
                33))))))
----------------------------------end-------------------------------

Of course, the meaning of this code is trivial.








reply via email to

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