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: Creating hooks from C


Keisuke Nishida <kxn30@po.cwru.edu> writes:

> Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
> 
> > > I'd prefer the name scm_c_define_hook or something for consistency with
> > > snarf macros.
> > 
> > The prefix scm_c_xxx means C version of an existing Scheme primitive
> > scm_xxx.  (It has been suggested that scm_c_ be used for everything
> > which is not a Scheme primitive.)
> 
> I like the prefix scm_c_ if it is a part of Guile's API and is called
> with C arguments (not SCM).  Probably I should suggest an updated naming
> policy rather than discussing here...

The name policy is not finished.  There is some material collected in
guile-core/devel/policy/names.text.

I expressed myself a bit sloppily above.  What you suggest is the same
as the suggested alternative which I was referring to.

This is a pretty big change to the API...

Maybe we should wait a while.  It looks like there are many wishes for
big changes to the API lurking behind the corner.  We could work on
this in parallel with the ordinary Guile development, and then make a
big, discontinuous change to the API when moving to Guile-2.0 (or
Guile-3.0)...

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