From 6496a6638bbd9592e71073d51d761a4d9c0c8ff3 Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Wed, 12 Mar 2003 17:16:36 +0000 Subject: [PATCH] * boot-9.scm (default-duplicate-binding-handler): Set default to '(replace warn last) --- NEWS | 4 ++-- ice-9/ChangeLog | 2 +- ice-9/boot-9.scm | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index bac814d1b..bd21eda12 100644 --- a/NEWS +++ b/NEWS @@ -79,7 +79,7 @@ The new default behavior of the module system when a name collision has been detected is to 1. Give priority to bindings marked as a replacement. - 2. Issue a warning. + 2. Issue a warning (different warning if overriding core binding). 3. Give priority to the last encountered binding (this corresponds to the old behavior). @@ -116,7 +116,7 @@ These two are provided by the (oop goops) module: The default duplicates handler is: - (replace warn last) + (replace warn-override-core warn last) A recommended handler (which is likely to correspond to future Guile behavior) can be installed with: diff --git a/ice-9/ChangeLog b/ice-9/ChangeLog index 7087f0bd3..7e18deba5 100644 --- a/ice-9/ChangeLog +++ b/ice-9/ChangeLog @@ -2,7 +2,7 @@ * boot-9.scm (ipow-by-squaring): Removed. (default-duplicate-binding-handler): Set default to - '(replace warn last) + '(replace warn-override-core warn last) * boot-9.scm (module-make-local-var!): Use module-add!. (module-primitive-add!): New function. diff --git a/ice-9/boot-9.scm b/ice-9/boot-9.scm index 84887aadb..9674bf699 100644 --- a/ice-9/boot-9.scm +++ b/ice-9/boot-9.scm @@ -2904,7 +2904,7 @@ (make-mutable-parameter #f)) (define default-duplicate-binding-handler - (make-mutable-parameter '(replace warn last) + (make-mutable-parameter '(replace warn-override-core warn last) (lambda (handler-names) (default-duplicate-binding-procedures (lookup-duplicates-handlers handler-names))