racket/collects/tests/gracket/racket-ns.rkt
Matthew Flatt 702df4b07a racket/gui/dynamic: make gui-dynamic-require' pull from racket/gui/base'
It was pulling from `scheme/gui/base', instead. The one from `scheme/gui/base'
is now different and still pulls from `scheme/gui/base'.

This could break some programs that accidentally depended on `scheme/gui/base'
exports from `gui-dynamic-require', but it's more likely to fix problems.
2012-11-19 08:13:48 -07:00

12 lines
423 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)])
(unless (namespace-variable-value 'hash #t (lambda () #f) ns)
(error "expected a binding for `hash'"))
(namespace-attach-module orig-ns 'racket/base ns))