Re: [Chicken-users] newbie: questions about set-finalizer!

2009-02-18 Thread felix winkelmann
On Fri, Feb 13, 2009 at 2:31 PM, felix winkelmann bunny...@gmail.com wrote: In interpreted code, the finalizers do not trigger at all, even when you exit csi via (exit). Hi! I have reverted the original change that caused this for the time being. cheers, felix

Re: [Chicken-users] newbie: questions about set-finalizer!

2009-02-13 Thread felix winkelmann
On Thu, Jan 29, 2009 at 9:01 PM, Jim Ursetto zbignie...@gmail.com wrote: On Thu, Jan 29, 2009 at 5:56 AM, felix winkelmann bunny...@gmail.com wrote: On Thu, Jan 29, 2009 at 9:41 AM, Jim Ursetto zbignie...@gmail.com wrote: I am seeing finalizers fail to execute on recent SVN and I think it is

Re: [Chicken-users] newbie: questions about set-finalizer!

2009-01-29 Thread Jim Ursetto
On Mon, Dec 22, 2008 at 3:03 AM, felix winkelmann bunny...@gmail.com wrote: Please try this [finalizer patch]. Hi. I am seeing finalizers fail to execute on recent SVN and I think it is the result of this change. I backed out the patch and it works okay again. On Version 3.4.10 - SVN rev.

Re: [Chicken-users] newbie: questions about set-finalizer!

2009-01-29 Thread felix winkelmann
On Thu, Jan 29, 2009 at 9:41 AM, Jim Ursetto zbignie...@gmail.com wrote: On Mon, Dec 22, 2008 at 3:03 AM, felix winkelmann bunny...@gmail.com wrote: Please try this [finalizer patch]. Hi. I am seeing finalizers fail to execute on recent SVN and I think it is the result of this change. I

Re: [Chicken-users] newbie: questions about set-finalizer!

2009-01-29 Thread Jim Ursetto
On Thu, Jan 29, 2009 at 5:56 AM, felix winkelmann bunny...@gmail.com wrote: On Thu, Jan 29, 2009 at 9:41 AM, Jim Ursetto zbignie...@gmail.com wrote: I am seeing finalizers fail to execute on recent SVN and I think it is the result of this change. I backed out the patch and it works okay

Re: [Chicken-users] newbie: questions about set-finalizer!

2008-12-22 Thread felix winkelmann
On Sat, Dec 20, 2008 at 4:04 PM, Alejandro Forero Cuervo a...@freaks-unidos.net wrote: Please try attached patch. I have added it to trunk and the chicken-3 branch, and did some tests, but testing finalization is always somewhat difficult. I tried the patch (on 3.4.0) and it did not work.

Re: [Chicken-users] newbie: questions about set-finalizer!

2008-12-22 Thread felix winkelmann
Please try this one. cheers felix Index: runtime.c === --- runtime.c (revision 12851) +++ runtime.c (working copy) @@ -2706,6 +2706,10 @@ for(gcrp = gc_root_list; gcrp != NULL; gcrp = gcrp-next) mark(gcrp-value); +

Re: [Chicken-users] newbie: questions about set-finalizer!

2008-12-21 Thread felix winkelmann
On Sat, Dec 20, 2008 at 4:04 PM, Alejandro Forero Cuervo a...@freaks-unidos.net wrote: Please try attached patch. I have added it to trunk and the chicken-3 branch, and did some tests, but testing finalization is always somewhat difficult. I tried the patch (on 3.4.0) and it did not work.

Re: [Chicken-users] newbie: questions about set-finalizer!

2008-12-20 Thread Alejandro Forero Cuervo
Please try attached patch. I have added it to trunk and the chicken-3 branch, and did some tests, but testing finalization is always somewhat difficult. I tried the patch (on 3.4.0) and it did not work. Running in csi the original code in my report, (define x (list 1 2 3)) (begin

Re: [Chicken-users] newbie: questions about set-finalizer!

2008-12-17 Thread felix winkelmann
On Tue, Dec 16, 2008 at 7:36 PM, felix winkelmann bunny...@gmail.com wrote: On Mon, Dec 15, 2008 at 11:57 PM, Alejandro Forero Cuervo a...@freaks-unidos.net wrote: I have a question about finalizers. If you run the following in csi: (define x (list 1 2 3)) (begin (set-finalizer! x

Re: [Chicken-users] newbie: questions about set-finalizer!

2008-12-16 Thread felix winkelmann
On Mon, Dec 15, 2008 at 11:57 PM, Alejandro Forero Cuervo a...@freaks-unidos.net wrote: I have a question about finalizers. If you run the following in csi: (define x (list 1 2 3)) (begin (set-finalizer! x (lambda (o) (format #t Delete: ~A~% o))) #t) (define y (list 4 5 6)) (begin

[Chicken-users] newbie: questions about set-finalizer!

2008-12-15 Thread Alejandro Forero Cuervo
I have a question about finalizers. If you run the following in csi: (define x (list 1 2 3)) (begin (set-finalizer! x (lambda (o) (format #t Delete: ~A~% o))) #t) (define y (list 4 5 6)) (begin (set-finalizer! y (let ((p x)) (lambda (o) (format #t Delete: ~A: ~A~% o p #t) (gc #t)