| www.delorie.com/gnu/docs/guile/guile_459.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The module (srfi srfi-10) implements the syntax extension
#,(), also called hash-comma, which is defined in SRFI-10.
The support for SRFI-10 consists of the procedure
define-reader-ctor for defining new reader constructors and the
read syntax form
#,(ctor datum ...) |
where ctor must be a symbol for which a read constructor was
defined previously, using define-reader-ctor.
Example:
(define-reader-ctor 'file open-input-file) (define f '#,(file "/etc/passwd")) (read-line f) => "root:x:0:0:root:/root:/bin/bash" |
Please note the quote before the #,(file ...) expression. This
is necessary because ports are not self-evaluating in Guile.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |