GNU bug report logs - #20546
Syntax bug in master branch (till d99fedc5fd38c0)

Previous Next

Package: guile;

Reported by: Nala Ginrut <nalaginrut <at> gmail.com>

Date: Mon, 11 May 2015 10:30:03 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nala Ginrut <nalaginrut <at> gmail.com>
To: 20546 <at> debbugs.gnu.org
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.







This bug report was last modified 8 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.