This is the mail archive of the guile@sourceware.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: Scheme hooks <-> C hooks


Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:

> > I'd like to suggest renaming all scm_c_hook_* to scm_gc_hook_* and
> > moving them to gc.[hc].  Then, all official API functions will be
> > scm_gc_hook_add and scm_gc_hook_remove.
> 
> Why do you want to rename them to scm_gc_hook when they don't contain
> and don't need to contain any GC code?
(ship)
> Also, I'm not sure what it is you're suggesting.  Are you saying that
> we should not support C hook functions, or are you saying that we
> should do this by encapsulating them as a Scheme primitive procedure?

I thought an application programmer doesn't need to define C hooks, so
Guile doesn't need to provide them.  But I'm not sure whether it is
true...  Is there any case for an application author to use C hooks?

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