GNU bug report logs - #10992
error signaled for syntax expression

Previous Next

Package: guile;

Reported by: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>

Date: Sun, 11 Mar 2012 13:55:02 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 10992 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>
To: 10992 <at> debbugs.gnu.org
Subject: patch and fixed test
Date: Sun, 18 Mar 2012 22:11:33 +0100
[Message part 1 (text/plain, inline)]
Racket has two versions of syntax-local-binding, one that does lookup of
syntax parameters and one that don't. So it would be interesting to know
why.

Anyway with this mail, there is a patch that enable syntax-local-value to
lookup syntax-parameters
as well.

Also let's fix the test. With the definitions as in the previous mail use
in stead,

(define-syntax info
  (lambda (x)
    (syntax-case x ()
      ((_ f)
        (let-values (((key ret) (syntax-local-binding #'f)))
          (datum->syntax x (eq? ret %f)))))))

and
(info f)                                                       => #t
(fluid-let-syntax ((f (lambda x #'#t))) (info f))  =>  #f
[Message part 2 (text/html, inline)]
[resolve-identifier.patch (text/x-patch, attachment)]

This bug report was last modified 13 years and 64 days ago.

Previous Next


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