scheme/gui/base: fix module-attach problem in `make-gui-base-namespace'
The `scheme/base' module had become unreachable from the `mred' module. While that normally would be a good thing, it lead to troublesome multiple instantiations of `scheme/base' that caused problems for attaching further modules to the namespace.
This commit is contained in:
parent
843aa670e9
commit
d90fbaeff4
|
@ -3,6 +3,7 @@
|
|||
define-namespace-anchor
|
||||
namespace-anchor->empty-namespace
|
||||
make-base-empty-namespace)
|
||||
(only scheme/base) (only scheme/class) ; so that `make-gui-namespace' attaches them
|
||||
racket/class
|
||||
racket/draw racket/snip
|
||||
file/resource
|
||||
|
|
9
collects/tests/gracket/racket-ns.rkt
Normal file
9
collects/tests/gracket/racket-ns.rkt
Normal file
|
@ -0,0 +1,9 @@
|
|||
#lang racket/base
|
||||
(require racket/gui/base
|
||||
racket/gui/dynamic)
|
||||
;; Don't change this program to use `racket'; ths point
|
||||
;; is to test `racket/gui/base' exports
|
||||
|
||||
(let ([ns ((gui-dynamic-require 'make-gui-namespace))]
|
||||
[orig-ns (current-namespace)])
|
||||
(namespace-attach-module orig-ns 'racket/base ns))
|
9
collects/tests/gracket/scheme-ns.rkt
Normal file
9
collects/tests/gracket/scheme-ns.rkt
Normal file
|
@ -0,0 +1,9 @@
|
|||
#lang scheme/base
|
||||
(require scheme/gui/base
|
||||
scheme/gui/dynamic)
|
||||
;; Don't change this program to use `racket'; ths point
|
||||
;; is to test `scheme/gui/base' exports
|
||||
|
||||
(let ([ns ((gui-dynamic-require 'make-gui-namespace))]
|
||||
[orig-ns (current-namespace)])
|
||||
(namespace-attach-module orig-ns 'scheme/base ns))
|
Loading…
Reference in New Issue
Block a user