<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
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
<a class="moz-txt-link-freetext" href="http://docs.racket-lang.org/guide/eval.html?q=namespace#%28tech._namespace%29">http://docs.racket-lang.org/guide/eval.html?q=namespace#%28tech._namespace%29</a><br>
<br>
Have you tried supplying a namespace to eval, possibly obtained
using define-namespace-anchor after your imports?<br>
<br>
<br>
<div class="moz-cite-prefix">On 26.04.14 14:57, AbdUr-RehMan wrote:<br>
</div>
<blockquote
cite="mid:CAK+nvRnFUubquGsMLaDQxTuR=L-TvbOsThzFr4R1Q1izEKYmGQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>eval working fine in REPL but gives "ask: unbound
identifier;<br>
also, no #%app syntax transformer is bound in: ask" error
when used in source file like</div>
<div><br>
</div>
<div>
<div>(require racket/include)</div>
<div>(include "world.rkt")</div>
<div><br>
</div>
<div>(eval '(ask abdur 'go 'north))</div>
</div>
<div><br>
</div>
<div>I have seen various questions regarding the same eval issue
on racket mailing list and in the documentation</div>
<div>but I didn't came across a case where they touch on case
like this</div>
<div>where I am including another file and the function is
defined in that class.</div>
<div><br>
</div>
<div>Any help would be greatly appreciated,</div>
<div>Thanks </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">____________________
Racket Users list:
<a class="moz-txt-link-freetext" href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a>
</pre>
</blockquote>
<br>
</body>
</html>