Kristian Lein-Mathisen <kristianl...@gmail.com> writes:

> From what I gather, there is no way to allocate memory and return a pointer
> to it, safely, in CHICKEN.
> Won't the garbage collector potentially overwrite whatever region was
> allocated since it has no way of knowing it?

There's allocate from chicken.memory that does just that. It allocates
using 'malloc', and chicken GC will have no knowledge or way of
interfering with the memory. Free the memory using 'free' from the same
module.

Reply via email to