[plt-scheme] Cooperating with the GC in foreign.ss code

From: Noel Welsh (noelwelsh at gmail.com)
Date: Wed Sep 9 16:43:23 EDT 2009

Thanks. That works.


On Wed, Sep 9, 2009 at 12:27 PM, Matthew Flatt<mflatt at cs.utah.edu> wrote:
> Assuming that you need the specific layout of `_gsl_matrix' (otherwise
> you'd just use `define-struct'), the best strategy is probably to
> allocate the `data' field with 'raw and release it through a finalizer
> on each `_gsl_matrix' instance.

Posted on the users mailing list.