summaryrefslogtreecommitdiff
path: root/module/srfi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-10-22 19:05:59 +0200
committerLudovic Courtès <ludo@gnu.org>2009-10-22 19:05:59 +0200
commit9c2224f2a616bc4fb3fca7947d65c44c6c66ffdf (patch)
treef1f5ac6d58eec7a0ee02a09c5f6255327a89e0c3 /module/srfi
parentb70f43e318b60f00776fae5580914f31937ec0d8 (diff)
downloadguile-9c2224f2a616bc4fb3fca7947d65c44c6c66ffdf.tar.gz
SRFI-88: Call `read-set!' at compile time and run time.
* module/srfi/srfi-88.scm: Call `read-set!' both at compile time and run time.
Diffstat (limited to 'module/srfi')
-rw-r--r--module/srfi/srfi-88.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/srfi/srfi-88.scm b/module/srfi/srfi-88.scm
index 0fec19ee1..9538f5c3d 100644
--- a/module/srfi/srfi-88.scm
+++ b/module/srfi/srfi-88.scm
@@ -1,6 +1,6 @@
;;; srfi-88.scm --- Keyword Objects
-;; Copyright (C) 2008 Free Software Foundation, Inc.
+;; Copyright (C) 2008, 2009 Free Software Foundation, Inc.
;;
;; This library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public
@@ -33,7 +33,10 @@
(cond-expand-provide (current-module) '(srfi-88))
-(read-set! keywords 'postfix)
+;; Change the keyword syntax both at compile time and run time; the latter is
+;; useful at the REPL.
+(eval-when (compile load)
+ (read-set! keywords 'postfix))
(define (keyword->string k)
"Return the name of @var{k} as a string."