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
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
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
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
4 matches
Mail list logo