This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: The taming of the before-gc-hook (was Re: Upcoming 1.3.2 release)
hjstein@bfr.co.il (Harvey J. Stein) writes:
<snip>
> Why is a C function on scm_before_gc_hook any safer than a Scheme
> function? The C function can just as easily call guile functions
> which require space to be grabbed.
It's not enforcibly any safer than a Scheme function; it'd be part of
the contract with the registration procedure that whatever C function
you register will not call any guile-level functions (or perhaps
something slightly less restrictive -- the point is that the C procedure
is easier to write to be well-behaved).
Greg