| www.delorie.com/gnu/docs/guile/guile_260.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Procedures always have attached the environment in which they were created and information about how to apply them to actual arguments. In addition to that, properties and meta-information can be stored with procedures. The procedures in this section can be used to test whether a given procedure satisfies a condition; and to access and set a procedure's property.
The first group of procedures are predicates to test whether a Scheme
object is a procedure, or a special procedure, respectively.
procedure? is the most general predicates, it returns #t
for any kind of procedure. closure? does not return #t
for primitive procedures, and thunk? only returns #t for
procedures which do not accept any arguments.
#t if obj is a procedure.
#t if obj is a closure.
#t if obj is a thunk.
Procedure properties are general properties to be attached to procedures. These can be the name of a procedure or other relevant information, such as debug hints.
Documentation for a procedure can be accessed with the procedure
procedure-documentation.
proc. By
convention, if a procedure contains more than one expression and the
first expression is a string constant, that string is assumed to contain
documentation for that procedure.
Source properties are properties which are related to the source code of a procedure, such as the line and column numbers, the file name etc.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |