[racket-dev] replacement for #:namespace arg in dispatch/servlet

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Jan 3 08:53:50 EST 2011

The option was removed because it didn't do anything.

#:namespace in other places in the Web Server is used to allow
dynamically loaded code to share module instantiations with the Web
Server (and therefore with each other.)

dispatch/servlet does not dynamic load any code. It runs a servlet
that is passed as a closure argument. That closure has whatever
namespace the author of the servlet wants it to and it would be
misleading to have this argument that really only effects dynamic
loading of code within the servlet itself.

The handin server should just work if you delete the argument, because
as I said, it isn't doing anything.

Jay

2011/1/2 John Clements <clements at brinckerhoff.org>:
> I'm trying to use the 'handin-server' code, which depends on a now-defunct #:namespace argument to dispatch/servlet. Your change eliminating this argument  (commit c7995e247e8300) was in response to Shriram's PR about port number assignments, but that doesn't help me to figure out why that argument would have disappeared.  I'm guessing that it's going to be something simple like using parameterize on current-namespace instead of specifying it as an optional argument, but since the handin server code isn't mine, I wouldn't be confident that my change was a sane one.
>
> So: is there a simple mechanism that replaces this optional argument?
>
> John Clements
>
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93


Posted on the dev mailing list.