On Sun, 2 Jan 2011 16:30:09 +0100
Stefan Schmiedl <s...@xss.de> wrote:

> I'm especially curious now, why racket complains about my code,
> which is quite similar to what dispatch/servlet 
> (web-server/servlet-dispatch.rkt)
> is doing:
> 
>   (if stateless?
>      (make-stateless.servlet servlet-current-directory stuffer manager start)
>      (make-v2.servlet servlet-current-directory manager start))
> 
> Why can this library function get away with using the same manager
> for both stateful and stateless servlets, and I can't?
> 
> Must be a case of "quod licet Iovi, non licet newbie" (argh).

And indeed it is. Obviously I need to read some more about servlets and
namespaces. For now I'm content with having a web server that can serve
static files, call functions to handle requests or dispatch to different
(kinds of) servlets. Not sure that having such a beast run in the wild
is such a great idea, though.

This is fun :-)

s.
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to