chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #1363: when compiled, set! will clobber previous lamb


From: Chicken Trac
Subject: [Chicken-janitors] #1363: when compiled, set! will clobber previous lambda-info's
Date: Thu, 13 Apr 2017 12:46:49 -0000

#1363: when compiled, set! will clobber previous lambda-info's
------------------------+--------------------------------
 Reporter:  kristianlm  |                 Owner:
     Type:  defect      |                Status:  new
 Priority:  minor       |             Milestone:  someday
Component:  unknown     |               Version:
 Keywords:              |  Estimated difficulty:
------------------------+--------------------------------
 I don't really know what's going on, but {{{set!}}} alters the previous
 ##sys#lambda-info structure:

 {{{
 1442 address@hidden ~/chicken-5-klm ➤ cat /tmp/klm.scm
 (define (foo a b c) 0)         (print foo)
 (set! foo (lambda (x y z) 1))  (print foo)

 1444 address@hidden ~/chicken-5-klm ➤ csc /tmp/klm.scm && /tmp/klm
 #<procedure (f_218 a1 b2 c3)> ;; bad
 #<procedure (foo x4 y5 z6)>   ;; good

 1444 address@hidden ~/chicken-5-klm ➤ csi -s /tmp/klm.scm
 #<procedure (foo a b c)>      ;; good
 #<procedure (foo x y z)>      ;; good
 }}}

--
Ticket URL: <https://bugs.call-cc.org/ticket/1363>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]