[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #447: Inconsistency when calling set-finalizer! multi
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #447: Inconsistency when calling set-finalizer! multiple times on the same object |
Date: |
Thu, 09 Dec 2010 21:51:21 -0000 |
#447: Inconsistency when calling set-finalizer! multiple times on the same
object
---------------------+------------------------------------------------------
Reporter: syn | Owner:
Type: defect | Status: new
Priority: major | Milestone: 4.7.0
Component: unknown | Version: 4.6.x
Keywords: |
---------------------+------------------------------------------------------
The following program prints "b" when interpreted and "ba" when compiled:
{{{
(define x (list 1))
(set-finalizer! x (lambda (x) (display 'a)))
(set-finalizer! x (lambda (x) (display 'b)))
(set! x #f)
}}}
I am not sure whether replacing the existing finalizer or appending
another finalizer makes more sense. However, it would probably be better
if both cases behaved the same.
--
Ticket URL: <https://bugs.call-cc.org/ticket/447>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #447: Inconsistency when calling set-finalizer! multiple times on the same object,
Chicken Trac <=