Re: [racket] Calling eval from the web server

2010-09-30 Thread Steve Knight
Yes, that definitely does help. I was figuring this out and trying to grok the docs and I also hit upon define-namespace-anchor which seemed like it would do the job and does in fact look like it works like I want it to. Good to hear I'm on the right track. My eval definitely does contain at le

Re: [racket] Calling eval from the web server

2010-09-30 Thread Jay McCarthy
This error probably has nothing to do with the Web server. If you run #lang racket (eval '(#%top-interaction . (last (1 2 3 Then you get the error: . compile: unbound identifier (and no #%app syntax transformer is bound) in: #%top-interaction If you run the same expression from the REPL you

Re: [racket] Calling eval from the web server

2010-09-30 Thread YC
Steve - Others will correct me if I have this wrong, but IIRC #:servlet-namespace is for sharing the namespace with other servlet modules, not for defining the namespace for eval. It looks like by default the current-namespace is empty (maybe web-server set it to racket/base but in repl it's empt

[racket] Calling eval from the web server

2010-09-30 Thread Steve Knight
Hello, I'm using Racket 5.0.1 (from emacs) and I'm having trouble understanding some behaviour I'm seeing in the web server. If I start a servlet and dispatch some URL to this function: (define (ev request) `(div (h1 "Last = " ,(format "~A" (last '(1 2 3 (h1 "Last = " ,(forma