chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #1183: Syntax bound via let-syntax not bound in synta


From: Chicken Trac
Subject: [Chicken-janitors] #1183: Syntax bound via let-syntax not bound in syntax-rules in its body
Date: Wed, 01 Apr 2015 23:56:05 -0000

#1183: Syntax bound via let-syntax not bound in syntax-rules in its body
----------------------+-----------------------------------------------------
 Reporter:  syn       |       Owner:         
     Type:  defect    |      Status:  new    
 Priority:  minor     |   Milestone:  someday
Component:  expander  |     Version:  4.9.x  
 Keywords:            |  
----------------------+-----------------------------------------------------
 I'm not entirely sure whether this use of `let-syntax` is valid:

 {{{
 (define-syntax foo
   (let-syntax ((bar (syntax-rules ()
                       ((_ x) '(x x)))))
     (syntax-rules ()
       ((_ x) (bar x)))))

 (foo 1)

 ;; Error: unbound variable: bar
 }}}

 Intuitively it makes sense but the report doesn't seem to say anything
 about the semantics of this use and at least Guile and Chibi signal the
 same error.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/1183>
CHICKEN Scheme <http://www.call-with-current-continuation.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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