mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +02:00
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.
This commit is contained in:
parent
b70f43e318
commit
9c2224f2a6
1 changed files with 5 additions and 2 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue