#| -*-Scheme-*-
-$Id: make.scm,v 14.60 1997/07/13 07:24:46 cph Exp $
+$Id: make.scm,v 14.61 1998/02/11 05:16:46 cph Exp $
-Copyright (c) 1988-97 Massachusetts Institute of Technology
+Copyright (c) 1988-98 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(eval (file->object "packag" #t #f) environment-for-package)
((access initialize-package! environment-for-package))
(let loop ((names
- '(ENVIRONMENT->PACKAGE
+ '(*ALLOW-PACKAGE-REDEFINITION?*
+ ENVIRONMENT->PACKAGE
FIND-PACKAGE
NAME->PACKAGE
PACKAGE/ADD-CHILD!
#| -*-Scheme-*-
-$Id: packag.scm,v 14.26 1998/02/11 04:50:31 cph Exp $
+$Id: packag.scm,v 14.27 1998/02/11 05:10:59 cph Exp $
Copyright (c) 1988-98 Massachusetts Institute of Technology
'()
(cons (car list) (loop (cdr list))))))
-(define (package/add-child! package name environment #!optional no-force?)
+(define (package/add-child! package name environment #!optional force?)
(let ((child (package/child package name))
(finish
(lambda (child)
child)))
(if child
(begin
- (if (and (not (default-object? no-force?)) no-force?)
+ (if (not (if (default-object? force?)
+ *allow-package-redefinition?*
+ force?))
(error "Package already has child of given name:" package name))
(set-package/environment! child environment)
(set-package/children! child '())
(finish child)))))
(define system-global-package)
+(define *allow-package-redefinition?*)
\f
(define system-loader/enable-query?
false)
(lexical-reference (package/environment package) name))
(define (initialize-package!)
- (set! system-global-package
- (make-package false false system-global-environment))
+ (set! system-global-package (make-package #f #f system-global-environment))
(local-assignment system-global-environment
package-name-tag
- system-global-package))
\ No newline at end of file
+ system-global-package)
+ (set! *allow-package-redefinition?* #f)
+ unspecific)
\ No newline at end of file
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.289 1998/01/08 05:59:11 cph Exp $
+$Id: runtime.pkg,v 14.290 1998/02/11 05:11:34 cph Exp $
Copyright (c) 1988-98 Massachusetts Institute of Technology
(files "packag")
(parent ())
(export ()
+ *allow-package-redefinition?*
environment->package
find-package
name->package
#| -*-Scheme-*-
-$Id: make.scm,v 14.63 1997/07/10 09:25:06 adams Exp $
+$Id: make.scm,v 14.64 1998/02/11 05:16:33 cph Exp $
-Copyright (c) 1988-97 Massachusetts Institute of Technology
+Copyright (c) 1988-98 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(eval (file->object "packag" #t #f) environment-for-package)
((access initialize-package! environment-for-package))
(let loop ((names
- '(ENVIRONMENT->PACKAGE
+ '(*ALLOW-PACKAGE-REDEFINITION?*
+ ENVIRONMENT->PACKAGE
FIND-PACKAGE
NAME->PACKAGE
PACKAGE/ADD-CHILD!
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.295 1998/01/08 05:59:01 cph Exp $
+$Id: runtime.pkg,v 14.296 1998/02/11 05:11:07 cph Exp $
Copyright (c) 1988-98 Massachusetts Institute of Technology
(files "packag")
(parent ())
(export ()
+ *allow-package-redefinition?*
environment->package
find-package
name->package