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: docstrings in Guile!


Daniel Skarda <0rfelyus@atrey.karlin.mff.cuni.cz> writes:

> > Not even much of a performance optimization:
> [snip]
> > The optimizer optimizes the extra test out anyway :)
> 
>   OK - you are right.... :)
> 
> 
>   But there is still small issue. Eventhough in guile 1.3.5 SCM_STRINGP would be
>   defined as
> 
> #define SCM_STRINGP(X)   (SCM_NIMP(X) && SCM_STRINGP_PRIOR_TO_1_3_5(X))
> 
>   than this code
>  
> 
>   if (SCM_STRINGP (X))
>     ...
> 
> 
>   will SIGSEGV on guile prior to 1.3.5 -=> so for compatibility reasons everyone
>   has to write:
> 
>   if (SCM_NIMP (X) && SCM_STRINGP(X))
>     ...

True, but only while they don't require a recent guile.  And it'd be
possible to put out new header files for older versions of guile to
avoid that problem.  Sometime down the road the next version of guile
will be the old version of guile and this will be a big win for
application programs (i.e., users of Guile).  In the interim, it'll make 
reading Guile code more comfortable and maintainable.

Thanks,
Greg

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