racket/collects/tests/gracket/racket-ns.rkt
Matthew Flatt d90fbaeff4 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.
2012-11-19 07:56:48 -07:00

10 lines
314 B
Racket

#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))