[racket-dev] Shared-instantiation modules

From: John Clements (clements at brinckerhoff.org)
Date: Fri Sep 10 18:04:56 EDT 2010

On Sep 10, 2010, at 1:48 PM, Ryan Culpepper wrote:

> The way the rackunit tool does it (to make the rackunit gui DrRacket-aware) is to attach a module into the user namespace on every execution by overriding the 'reset-console' method of drracket:rep:text%. See rackunit/tool.rkt for the code.
> Then you can have a module/teachpack that just requires the attached module.

Good Gravy!  It would have taken me *weeks* to figure that out. Especially the bit about making the shared link module written in the #%kernel language. Yikes!

It works like a charm.

Many thanks,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20100910/196f3182/attachment.p7s>

Posted on the dev mailing list.