From gwking at metabang.com Fri Oct 3 16:03:11 2008 From: gwking at metabang.com (Gary King) Date: Fri, 3 Oct 2008 12:03:11 -0400 Subject: [Moptilities-devel] Re: Moptilities:care-when-finalized method does not work for sbcl In-Reply-To: <4be8713d0810030818w4dec29fcn12131e1b65f75758@mail.gmail.com> References: <4be8713d0810030818w4dec29fcn12131e1b65f75758@mail.gmail.com> Message-ID: <17D4372A-B9A2-40DD-AC4B-0DA2402E2A5E@metabang.com> (cc'd to list) Hi Gustavo, Thanks for bringing this to my attention. I didn't realize it. I agree with you that signaling an error (at compile time) is the right thing to do. I'll add this change to my list of things to do and hope to get to it over the weekend. On Oct 3, 2008, at 11:18 AM, Gustavo wrote: > Gary King, > > In sbcl, the care-when-finalized function does not do its job. It is > know that sbcl's sb-ext:finalizer can't reference the object it is > finalizing, because its garbage collector is written in C and, when > the finalizer is called, the object is already gone. So there is no > hope calling care-when-finalized will ever work with sbcl (at least > not with the current version of sbcl). Maybe it would be better to > signal an error (a "function not implemented" error) instead of > calling sb-ext:finalizer with a method which takes one argument - > which is invalid. > > Gustavo. -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM