From 9c2224f2a616bc4fb3fca7947d65c44c6c66ffdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 22 Oct 2009 19:05:59 +0200 Subject: [PATCH] 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. --- module/srfi/srfi-88.scm | 7 +++++-- 1 file 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."