[racket] Namespaces - GCable?

From: Ray Racine (ray.racine at gmail.com)
Date: Sat Feb 9 19:50:40 EST 2013

The API is pretty flexible about creating and loading modules into
namespaces.  What is not apparent is how to evict a namespace or the
GC-ableness of a namespace.

In the REPL, topleve.

Say I in a scope of code, I create a base namespace I'll call TMP, load or
attach modules into it, switch to it via current-namespace.

Now say I switch the current-namespace to some other namespace, maybe the
original I saved before I created TMP.  At the top-level, to me, there is
no reference to TMP.  Will TMP be GC'd?  Or is there away to explicitly
"purge" an unused namespace?

Thanks,

Ray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130209/acdfedb7/attachment.html>

Posted on the users mailing list.