[plt-scheme] PLT Scheme v370
On May 23, Hans Oesterholt-Dijkema wrote:
> So, If I'm using Scheme_Object * in my extensions, what
> must I do to prevent them from being moved around?
You use the xform thing (through mzc, I don't remember the details,
sorry) and Scheme_Object* pointers will be moved when there's a GC and
pointers adapted. You need to be aware of this when handing off such
pointers to other C code.
If you don't want them to move you need to allocate them yourself
(through the system's malloc).
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!