[racket] eval working in REPL but not in source file

From: Philipp Dikmann (philipp at dikmann.de)
Date: Sat Apr 26 11:50:04 EDT 2014

When I had a similar problem regarding eval and the REPL, the fine folks 
of this mailing list pointed out that the namespace-argument of eval 
makes all the difference, as explained here 

Have you tried supplying a namespace to eval, possibly obtained using 
define-namespace-anchor after your imports?

On 26.04.14 14:57, AbdUr-RehMan wrote:
> eval working fine in REPL but gives "ask: unbound identifier;
>  also, no #%app syntax transformer is bound in: ask" error when used 
> in source file like
> (require racket/include)
> (include "world.rkt")
> (eval '(ask abdur 'go 'north))
> I have seen various questions regarding the same eval issue on racket 
> mailing list and in the documentation
> but I didn't came across a case where they touch on case like this
> where I am including another file and the function is defined in that 
> class.
> Any help would be greatly appreciated,
> Thanks
> ____________________
>    Racket Users list:
>    http://lists.racket-lang.org/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140426/d929ade1/attachment.html>

Posted on the users mailing list.