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: GC interface (was Re: Scheme hooks <-> C hooks)


Michael Livshin <mlivshin@bigfoot.com> writes:

> 0) I think that Scheme hook procedures and C hook procedures (well, C
>    procedures and Scheme procedures in general) should be equal
>    citizens where possible, mainly because I don't see why not.  it
>    looks like you have some reason to believe otherwise.  what is it?

What do you mean with "C hook procedure"?

I talked about "C hook function", which is an ordinary C function,
that is, not a Scheme object, while a "Scheme hook function" is a
Scheme procedure, that is, a Scheme object.

Before answering your question I'd like to check that we understand
eachother.  By "equal citizen", are you suggesting that it should be
possible to add both Scheme hook functions and C hook functions to the
same kind of hook?

(BTW, if "yes", what should happen with the C hook functions in a hook
 when we call `reset-hook!' from the Scheme level?  This is not some
 kind of trap... :)

> 1) I think that the only time/place where Scheme procedures are
>    unwelcome is garbage collection.  it looks like you envision other
>    situations where Scheme procedures are unwelcome.  what kind of
>    situations?

I don't envision any other situations.  But I do see that there could
be situations where C hooks can be useful.  "Could be" is not strong
enough to motivate adding new things, but it is strong enough to
motivate not unnecessarily restricting the use of C hooks.

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