Re: [racket] eval function works at REPL but not in file

2013-05-14 Thread Alfred Zhong
Thanks a lot, Matthew! That works! On Tue, May 14, 2013 at 8:06 AM, Matthew Flatt wrote: > Hi Alfred, > > See > > http://docs.racket-lang.org/guide/eval.html#(part._namespaces) > > Matthew > > At Tue, 14 May 2013 07:01:51 -0400, Alfred Zhong wrote: > > Hi Racket experts, > > > > I am reading

Re: [racket] eval function works at REPL but not in file

2013-05-14 Thread Matthew Flatt
Hi Alfred, See http://docs.racket-lang.org/guide/eval.html#(part._namespaces) Matthew At Tue, 14 May 2013 07:01:51 -0400, Alfred Zhong wrote: > Hi Racket experts, > > I am reading SICP and trying this piece of code using Racke: > > (define (definition-value exp) > (if (symbol? (cadr exp

[racket] eval function works at REPL but not in file

2013-05-14 Thread Alfred Zhong
Hi Racket experts, I am reading SICP and trying this piece of code using Racke: (define (definition-value exp) (if (symbol? (cadr exp)) (caddr exp) (make-lambda (cdadr exp) ; formal parameters (cddr exp) ; body ) ) ) (define (make-lam