[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#; syntax

This page is part of the web mail archives of SRFI 62 from before July 7th, 2015. The new archives for SRFI 62 contain all messages, not just those from before July 7th, 2015.



The SCM Scheme implementation uses the "#;" syntax in a manner
incompatible with SRFI-62:

http://swiss.csail.mit.edu/~jaffer/scm_4.html#SEC55

4.8.3 Documentation and Comments
--------------------------------

 -- procedure: procedure-documentation proc
     Returns the documentation string of PROC if it exists, or `#f' if
     not.

     If the body of a `lambda' (or the definition of a procedure) has
     more than one expression, and the first expression (preceeding any
     internal definitions) is a string, then that string is the
     "documentation string" of that procedure.

          (procedure-documentation (lambda (x) "Identity" x))
          => "Identity"
          (define (square x)
              "Return the square of X."
              (* x x))
          => #<unspecified>
          (procedure-documentation square)
          => "Return the square of X."

 -- Function: comment string1 ...
     Appends STRING1 ... to the strings given as arguments to previous
     calls `comment'.

 -- Function: comment
     Returns the (appended) strings given as arguments to previous calls
     `comment' and empties the current string collection.

 -- Load syntax: #;text-till-end-of-line
     Behaves as `(comment "TEXT-TILL-END-OF-LINE")'.