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)


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

> 1. There's no question that the C hooks are needed.  I also hope that
>    there is no question that we should export them.  However it could
>    be discussed whether they should belong to the standard API or not.

I understand that the C hooks are needed.  I don't think they should
belong to the standard API, because they are too general (means that
they are nothing related to Guile itself.)

I agree with that C hooks are generally useful, so probably the best
solution would be this:

1. Rename scm_c_hook_* to something that indicates they are internal
   functions, such as scm_i_hook_*.

2. Provide minimum number of official API functions.  I think two
   functions scm_gc_hook_add and scm_gc_hook_remove are enough.

3. In case more C level hooks become needed, we can add similar set
   of functions.  Since C hooks are low level stuff, restricting the
   interface is a good thing, I think.

I'll try to write what I originally wanted to say after reading the
rest of the articles...

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