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: Scwm docstrings change


Jon Trowbridge wrote:
> 
> 
> Let me agree with Greg, and vigorously assert that a lot of errors
> very easily can result from this duplication.
> 
> We've used guile to scriptify a semi-large simulation tool.  The
> bindings (as of today) expose 305 C functions to guile, and define 23
> new types via the smob mechanism.
> 
> When we first started this, I didn't know how snarfing worked, so we
> put in all of the scm_make_gsubr's by hand.  It was a constant source
> of problems, as small errors and omissions would be made --- keeping
> the function definitions and scm_make_gsubr calls in sync became a big
> headache.  In this case, snarfing has been a real life-saver.

Tell me about it. Way back, Scwm used to use gn_new_procedure to
declare everything. However, I think changing to SCM_PROC fixed
a lot more errors than the change to the more integrated SCWM_PROC -
I think the biggest win is the ability to keep all info about
a procedure in one place, as opposed to just eliminating duplication.
But I definitely agree that both can be sources of errors.

 - Maciej

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