[racket-dev] dynamic require and collapsed snips?
> So there must be some context that I'm missing here. What should I be
> doing to not get this error at the terminal? Thanks!
Following up: I figured out that I need to use (make-gui-namespace) to
create a namespace that knows about the snip classes. e.g.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#lang racket/base
(require racket/gui/base)
(parameterize ([current-namespace (make-gui-namespace)])
(dynamic-require '(file "snips.rkt") #f))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Thanks!