Browse thread
[Caml-list] GC, Anonymous Functions, and C
- Jonathan Roewen
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-12-17 (21:55) |
From: | Jonathan Roewen <jonathan.roewen@g...> |
Subject: | [Caml-list] GC, Anonymous Functions, and C |
Hi, When passing an anonymous ocaml function to a C function, is it safe to store that value in an array, and then call it later at an abitrary time, or will the GC reclaim it? And if so, what should be done to stop the GC from doing so? Basically, we're trying to do interrupt handling from OCaml, and need to store the anonymous functions somewhere for the IDT to jump into, to provide a little context for the problem. Regards, Jonathan Roewen