[Gd-hackers] Suggested patch for Open Dylan's C runtime

Bruce Hoult bruce at hoult.org
Tue Jul 31 00:23:30 CEST 2007


On 7/31/07, Thomas Christian Chust <chust at web.de> wrote:
> Thomas Christian Chust wrote:
> > Bruce Hoult wrote:
> >> You could allocate the list link for the object at the point that you
> >> register the finalizer for it
> >
> I guess I shouldn't hack such stuff together when in a hurry. A much
> easier solution which also avoid allocation inside the finalization
> procedure is possible by simply using the data argument to that
> procedure to supply a preallocated cons cell.

Right. :-)  Looks good provided that link object won't get GC'd in the meantime.



More information about the hackers mailing list