/usr/share/guile/3.0/srfi
NameSizeModeActions
srfi-4/-0755rm
srfi-9/-0755rm
srfi-42/-0755rm
srfi-64/-0755rm
srfi-67/-0755rm
srfi-171/-0755rm
srfi-1.scm312170644editdlrm
srfi-2.scm11050644editdlrm
srfi-4.scm51070644editdlrm
srfi-6.scm10920644editdlrm
srfi-8.scm11030644editdlrm
srfi-9.scm133650644editdlrm
srfi-10.scm28270644editdlrm
srfi-11.scm55110644editdlrm
srfi-13.scm27880644editdlrm
srfi-14.scm23860644editdlrm
srfi-16.scm18830644editdlrm
srfi-17.scm65730644editdlrm
srfi-18.scm124100644editdlrm
srfi-19.scm562230644editdlrm
srfi-26.scm26430644editdlrm
srfi-27.scm30510644editdlrm
srfi-28.scm11930644editdlrm
srfi-31.scm13950644editdlrm
srfi-34.scm14420644editdlrm
srfi-35.scm59870644editdlrm
srfi-37.scm85940644editdlrm
srfi-38.scm83870644editdlrm
srfi-39.scm21590644editdlrm
srfi-41.scm203900644editdlrm
srfi-42.scm17960644editdlrm
srfi-43.scm391820644editdlrm
srfi-45.scm35830644editdlrm
srfi-60.scm21780644editdlrm
srfi-64.scm26240644editdlrm
srfi-67.scm23620644editdlrm
srfi-69.scm130070644editdlrm
srfi-71.scm103250644editdlrm
srfi-88.scm17550644editdlrm
srfi-98.scm16120644editdlrm
srfi-111.scm13130644editdlrm
srfi-171.scm134730644editdlrm
Edit: /usr/share/guile/3.0/srfi/srfi-39.scm (2159B)
;;; srfi-39.scm --- Parameter objects ;; Copyright (C) 2004, 2005, 2006, 2008, 2011 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 ;; License as published by the Free Software Foundation; either ;; version 3 of the License, or (at your option) any later version. ;; ;; This library is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. ;; ;; You should have received a copy of the GNU Lesser General Public ;; License along with this library; if not, write to the Free Software ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;;; Author: Jose Antonio Ortega Ruiz ;;; Date: 2004-05-05 ;;; Commentary: ;; This is an implementation of SRFI-39 (Parameter objects). ;; ;; The implementation is based on Guile's fluid objects, and is, therefore, ;; thread-safe (parameters are thread-local). ;; ;; In addition to the forms defined in SRFI-39 (`make-parameter', ;; `parameterize'), a new procedure `with-parameters*' is provided. ;; This procedures is analogous to `with-fluids*' but taking as first ;; argument a list of parameter objects instead of a list of fluids. ;; ;;; Code: (define-module (srfi srfi-39) ;; helper procedure not in srfi-39. #:export (with-parameters*) #:re-export (make-parameter parameterize current-input-port current-output-port current-error-port)) (cond-expand-provide (current-module) '(srfi-39)) (define (with-parameters* params values thunk) (let more ((params params) (values values) (fluids '()) ;; fluids from each of PARAMS (convs '())) ;; VALUES with conversion proc applied (if (null? params) (with-fluids* fluids convs thunk) (more (cdr params) (cdr values) (cons (parameter-fluid (car params)) fluids) (cons ((parameter-converter (car params)) (car values)) convs)))))