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 10:12:01 -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):

 Sorry, it was late.  The actual code that reproduces the error is:

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

 The error is:
 {{{
 Warning: reference to possibly unbound identifier `req'

 Error: module unresolved: foo
 }}}

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