Re: [racket] eval, namespaces, and the REPL

2010-12-04 Thread Eduardo Bellani
More specifically, I think section 15.1.2 of the guide addresses exactly what you want to know. More specifically: /quote #lang racket (eval '(cons 1 2)) This fails because the initial current namespace is empty. When you run racket in interactive mode (see Interactive Mode), the initial na

Re: [racket] eval, namespaces, and the REPL

2010-12-04 Thread Patrick King
No, I hadn't. Helps me do what want, but I still don't fully grok why it is so. Obviously, more reflection is required ;) Thanks, Matt On Dec 4, 2010 7:19 AM, "Matthew Flatt" wrote: At Sat, 4 Dec 2010 05:43:06 -0600, Patrick King wrote: > Why is it that > > (eval '(+ 1 2)) > > wo... Have you se

Re: [racket] eval, namespaces, and the REPL

2010-12-04 Thread Matthew Flatt
At Sat, 4 Dec 2010 05:43:06 -0600, Patrick King wrote: > Why is it that > > (eval '(+ 1 2)) > > works fine in the REPL, but blow up in a source file? Yes, I've grokked that > there are 2 different namespaces, but why should it be so? And how do I > express "use the namespace of the file you're in

[racket] eval, namespaces, and the REPL

2010-12-04 Thread Patrick King
Why is it that (eval '(+ 1 2)) works fine in the REPL, but blow up in a source file? Yes, I've grokked that there are 2 different namespaces, but why should it be so? And how do I express "use the namespace of the file you're in"? Thanks Pat _ F