This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]