[racket-dev] #:namespace

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Oct 4 10:51:08 EDT 2010

On Mon, Oct 4, 2010 at 8:17 AM, Eli Barzilay <eli at barzilay.org> wrote:
> 40 minutes ago, Jay McCarthy wrote:
>>
>> [...] I removed the namespace argument and the request handler
>> closure is simply evaluated in the namespace it came from.
>
> The relevant piece of code:
>
>  #lang racket/base
>  (require ... handin-server/private/logger ...)
>  (provide run)
>  (define (run)
>    ...
>    (run-servlet
>     dispatcher
>     #:namespace '(... handin-server/private/logger ...)
>     #:log-file (get-conf 'web-log-file))
>     ...)
>
> does the above mean that the logger will be shared because there is no
> new instantiation of this code?

Yup

Jay

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

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


Posted on the dev mailing list.