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: Names in libguile


thi <ttn@revel.glug.org> writes:

>    From: Mikael Djurfeldt <mdj@mdj.nada.kth.se>
>    Date: Thu, 16 Mar 2000 18:38:26 +0100
> 
>    If there's a C variant of something provided at the Scheme level
>    (like the current scm_internal_dynamic_wind), it has the prefix
>    scm_c_ instead of scm_.
> 
> this is the only one i don't understand.  why is it important to
> reflect the origin of the definition?

By rule, the C level name of the Scheme primitive `dynamic-wind' is
scm_dynamic_wind.

However, we also need a suitable C level interface to this
functionality.

Since scm_dynamic_wind is occupied by the primitive (which is not easy
to use in C code), the C level version gets the name
scm_c_dynamic_wind.

We could extend this policy to say that *any* libguile function which
is not a primitive should have prefix scm_c_ ...

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