chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #944: Macro-renamed definitions in begin bodies d


From: Chicken Trac
Subject: Re: [Chicken-janitors] #944: Macro-renamed definitions in begin bodies don't get seen by later forms (but only in modules)
Date: Tue, 30 Oct 2012 20:35:26 -0000

#944: Macro-renamed definitions in begin bodies don't get seen by later forms
(but only in modules)
-----------------------+----------------------------------------------------
  Reporter:  sjamaan   |       Owner:  sjamaan                           
      Type:  defect    |      Status:  new                               
  Priority:  major     |   Milestone:  4.9.0                             
 Component:  expander  |     Version:  4.8.x                             
Resolution:            |    Keywords:  expander, macros, hygiene, modules
-----------------------+----------------------------------------------------

Comment(by sjamaan):

 I've tested a couple of Schemes, and it looks like Chicken is doing
 something pretty wrong with generated macro names. Try the following on
 the REPL:

 {{{
 #;1> (define-syntax foo (syntax-rules () ((_) (begin (define bar 1)
 (display bar) (newline)))))
 #;2> bar  ;; This causes an error to be thrown.  In Chicken, it just
 results in 1
 }}}

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/944#comment:5>
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]