1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-20 10:40:19 +02:00

* boot-9.scm (use-syntax): Return *unspecified*.

* syncase.scm: (syncase): Set expansion-eval-closure.
This commit is contained in:
Mikael Djurfeldt 2003-01-15 20:35:25 +00:00
parent 7906d57d02
commit cf743aeae6
3 changed files with 12 additions and 4 deletions

View file

@ -1,13 +1,17 @@
2003-01-15 Mikael Djurfeldt <djurfeldt@nada.kth.se>
* boot-9.scm (use-syntax): Return *unspecified*.
* syncase.scm: Set expansion-eval-closure to
the-syncase-eval-closure during booting so that variables are
created in the correct module;
created in the correct module.
(syncase): Set expansion-eval-closure.
(define-syntax define-syntax-public eval-when fluid-let-syntax
identifier-syntax let-syntax letrec-syntax syntax syntax-case
syntax-rules with-syntax include): Removed definitions (these are
created from within psyntax.pp).
2003-01-10 Mikael Djurfeldt <djurfeldt@nada.kth.se>
* occam-channel.scm (make-channel): Renamed from channel.

View file

@ -1,6 +1,6 @@
;;; installed-scm-file
;;;; Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Free Software Foundation, Inc.
;;;; Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002, 2003 Free Software Foundation, Inc.
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
@ -2593,7 +2593,8 @@
(list ,@(compile-interface-spec spec))))
(set-module-transformer! (current-module)
,(car (last-pair spec))))
`((set-module-transformer! (current-module) ,spec))))
`((set-module-transformer! (current-module) ,spec)))
*unspecified*)
(else
(error "use-syntax can only be used at the top level"))))

View file

@ -226,7 +226,10 @@
'*sc-expander*
'(define))))
(define syncase sc-expand)
(define (syncase exp)
(with-fluids ((expansion-eval-closure
(module-eval-closure (current-module))))
(sc-expand exp)))
(set-module-transformer! the-syncase-module syncase)