| www.delorie.com/gnu/docs/guile/guile_206.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
In traditional Lisp dialects, symbols are often understood as having three kinds of value at once:
put or get functions.
Although Scheme (as one of its simplifications with respect to Lisp) does away with the distinction between variable and function namespaces, Guile currently retains some elements of the traditional structure in case they turn out to be useful when implementing translators for other languages, in particular Emacs Lisp.
Specifically, Guile symbols have two extra slots. for a symbol's property list, and for its "function value." The following procedures are provided to access these slots.
equal?; prop should be one of the keys in that list. If
the property list has no entry for prop, symbol-property
returns #f.
symbol-property.
symbol-property.
Support for these extra slots may be removed in a future release, and it is probably better to avoid using them. (In release 1.6, Guile itself uses the property list slot sparingly, and the function slot not at all.) For a more modern and Schemely approach to properties, see 24.2 Object Properties.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |