On 2013-12-16 00:59, pluijzer wrote: > [...] > I am using a C-library that lets you assign user data to objects via a void > pointer. > I would like to assign a scheme object to this pointer, but as I understand I > cannot use > 'object->pointer' for this, as the garbage collector might move the object. > [...]
Hello, check out CHICKEN_new_gc_root and friends [1]. These functions can be used to manage mutable cells that can hold references to Scheme objects and are taken into account by the garbage collector. Ciao, Thomas -- [1] http://wiki.call-cc.org/man/4/Embedding#chicken_new_gc_root -- When C++ is your hammer, every problem looks like your thumb. _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users