chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #944: Macro-renamed definitions in begin bodies don't


From: Chicken Trac
Subject: [Chicken-janitors] #944: Macro-renamed definitions in begin bodies don't get seen by later forms (but only in modules)
Date: Mon, 29 Oct 2012 23:50:18 -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  
 Keywords:  expander, macros, hygiene, modules  |  
------------------------------------------------+---------------------------
 Reported by Andy on IRC:

 {{{
 #!scm
 (module foo (bar)
   (import chicken scheme)
   (define-syntax bar
     (er-macro-transformer
       (lambda (e r c)
         `(,(r 'begin)
            (,(r 'define) ,(r 'req) 1)
            (,(r 'display) ,(r 'req))))))))
 }}}

 This gives an error, while at toplevel it's okay.  I think it should just
 print "1", but maybe there's a good reason why it doesn't?

 Also happens with IR macros:

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