chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] Re: #445: define-record doesn't respect scope rules


From: Chicken Trac
Subject: [Chicken-janitors] Re: #445: define-record doesn't respect scope rules
Date: Sat, 11 Dec 2010 12:11:58 -0000

#445: define-record doesn't respect scope rules
----------------------+-----------------------------------------------------
  Reporter:  mario    |       Owner:  felix   
      Type:  defect   |      Status:  assigned
  Priority:  major    |   Milestone:  4.7.0   
 Component:  unknown  |     Version:  4.6.x   
Resolution:           |    Keywords:          
----------------------+-----------------------------------------------------

Comment(by felix):

 I think the problem is that `##sys#canonicalize-body` compares the
 starting expressions of bodies with an `eq?` on the result of `lookup`.
 The expansion of `define-record` expands into definitions with a renamed
 version of `define`, and the lookup returns the global toplevel definition
 of `define` which does not compare `eq?` with `'define`. Just a hunch, but
 this must somehow be the reason (this or something similar). Perhaps we
 should use a different lookup routine in this case: just `eq?` comparison
 with the symbol or it's macro-alias (if it exists).

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