[racket] using syntax/modcode and make-base-namespace

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue May 24 09:01:23 EDT 2011

At Tue, 24 May 2011 08:39:39 -0400, Matthias Felleisen wrote:
> > To fix this pronlem, the Matrix snip class should be changed to set a
> > different snip-class name to support non-GUI mode.
> So how do I do that? 

Instead of #"(lib \"matrix.ss\" \"htdp\")", the snipclass name should
be #"((lib \"matrix.rkt\" \"htdp\") (lib \"matrix-reader.rkt\"
\"htdp\"))", where `htdp/matrix-reader' identifies a module that
provides `reader'; the `reader' function parses the snip and returns an
object that implements `readable<%>'.



Posted on the users mailing list.