chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #1166: Globally defining an identifier previously bou


From: Chicken Trac
Subject: [Chicken-janitors] #1166: Globally defining an identifier previously bound to a macro should shadow the macro fully
Date: Wed, 29 Oct 2014 07:47:04 -0000

#1166: Globally defining an identifier previously bound to a macro should shadow
the macro fully
----------------------+-----------------------------------------------------
 Reporter:  sjamaan   |       Owner:  sjamaan
     Type:  defect    |      Status:  new    
 Priority:  major     |   Milestone:  someday
Component:  expander  |     Version:         
 Keywords:            |  
----------------------+-----------------------------------------------------
 Pointed out by Michele La Monaca: CHICKEN behaves a little ''too''
 inconsistent wrt scoping:

 {{{#!scm

 (define begin -)
 (begin 0 1) => 1  ;; expected: -1
 }}}

 It would make more sense if the macro was erased from the environment.

 It's probably doable, but in order to make this work the way environments
 are handled need to be completely overhauled.

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