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!



> 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))
    ...

Dan Skarda


  
  

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