chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] Re: #220: call-with-values rewrite rule for known pro


From: Chicken Trac
Subject: [Chicken-janitors] Re: #220: call-with-values rewrite rule for known producer with single-valued body
Date: Sat, 01 May 2010 22:47:51 -0000

#220: call-with-values rewrite rule for known producer with single-valued body
-------------------------------------------+--------------------------------
 Reporter:  felix                          |       Owner:  felix
     Type:  enhancement                    |      Status:  new  
 Priority:  not urgent at all              |   Milestone:       
Component:  compiler                       |     Version:       
 Keywords:  optimization call-with-values  |  
-------------------------------------------+--------------------------------

Comment(by felix):

 Since the producer may refer to bindings not lexically visible in F, a
 better transformation would be:

 {{{
 ([##sys#]call-with-values K P F)

 ~>

 (let ((T1 (lambda (R) (F K R))))   ; continuation lambda
   (P T1))
 }}}

-- 
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/220#comment:1>
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]