From c0997079b4f65b10fc96da4467ce0b4fcb534080 Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Wed, 21 Jun 2000 01:17:51 +0000 Subject: [PATCH] *** empty log message *** --- NEWS | 38 ++++++++++++++++++++++++++++++++++++++ ice-9/ChangeLog | 9 +++++++++ 2 files changed, 47 insertions(+) diff --git a/NEWS b/NEWS index e46483f55..73e92a914 100644 --- a/NEWS +++ b/NEWS @@ -10,8 +10,46 @@ Changes since Guile 1.4: * Changes to the stand-alone interpreter +** It's now possible to create modules with controlled environments + +Example: + +(define m (make-module 1021 (list (resolve-interface '(ice-9 safe-r5rs))))) +;;; m will now be a module containing only a safe subset of R5RS +(eval-in-module '(+ 1 2) m) --> 3 +(eval-in-module 'load m) --> ERROR: Unbound variable: load + * Changes to Scheme functions and syntax +** New define-module option: pure + +Tells the module system not to include any bindings from the root +module. + +Example: + +(define-module (totally-empty-module) + :pure) + +** New define-module option: export NAME1 ... + +Export names NAME1 ... + +This option is required if you want to be able to export bindings from +a module which doesn't import one of `define-public' or `export'. + +Example: + +(define-module (foo) + :pure + :use-module (ice-9 r5rs) + :export (bar)) + +;;; Note that we're pure R5RS below this point! + +(define (bar) + ...) + * Changes to the gh_ interface * Changes to the scm_ interface diff --git a/ice-9/ChangeLog b/ice-9/ChangeLog index 6b1ac4274..ea66f130d 100644 --- a/ice-9/ChangeLog +++ b/ice-9/ChangeLog @@ -1,3 +1,12 @@ +2000-06-21 Mikael Djurfeldt + + * boot-9.scm (purify-module!, module-export!): New procedures. + (export): Rewritten using `module-export!'. + (process-define-module): New define-module options: pure, export. + See NEWS. + + * null.scm, r5rs.scm, safe-r5rs.scm, safe.scm: New modules. + 2000-06-20 Mikael Djurfeldt * session.scm (make-fold-modules): Detect circular references in