[racket-dev] dynamic require and collapsed snips?

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Sun Sep 11 14:54:39 EDT 2011

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


Posted on the dev mailing list.