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

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Jan 3 09:22:43 EST 2011

Thanks Jay. I've removed the use of the argument and verified that the
handin-server still seems to work. I'll push the change when I get to
school.

Robby

On Monday, January 3, 2011, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> 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
> _________________________________________________
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/dev


Posted on the dev mailing list.