<div dir="ltr"><div><div><div>Thanks a lot!! it works but small problem:<br></div>---------------------------------------<br></div><b>in command line: </b><br></div>racket program.rkt test-case.rkt<br>------------------------------------------<br>
<div><div><div><b>in program.rkt:</b><br>(define case (current-command-line-arguments))<br>(display case)<br>(require case)<br><div><div class="gmail_extra">------------------------------------------<br><br></div><div class="gmail_extra">
display works fine, but require<br></div><div class="gmail_extra">gets this error:<br>.........................................<br>case: standard-module-name-resolver: collection not found<br> collection: "case"<br>
in collection directories:<br> C:\Users\boshra14\AppData\Roaming\Racket\5.3.1\collects<br> C:\Program Files\Racket\collects in: case<br>..........................................<br></div><div class="gmail_extra"><br>
<br><br><br><div class="gmail_quote">On Wed, Mar 20, 2013 at 11:25 AM, Danny Yoo <span dir="ltr"><<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">On Wed, Mar 20, 2013 at 7:34 AM, Boshra Nabaei <<a href="mailto:b.nabaei@gmail.com">b.nabaei@gmail.com</a>> wrote:<br>
> Thanks a lot Danny!<br>
> Now after inputting string(the name if he test-case file) I want to require<br>
> that. It finds it, but still doesn't recognize my list defined in there.<br>
> When I use (provide), racket doesn't know (provide).<br>
><br>
> how can I require another file to use its variable without (provide)?<br>
<br>
</div>I recommend that you keep the Racket list in CC, so that you don't<br>
depend on just one person to help resolve your questions.<br>
<br>
<br>
It would be helpful to show what your programs look like now. I<br>
expected using 'provide' and 'require' to work to refer to variables<br>
in other modules. The Guide introduces them here:<br>
<br>
<a href="http://docs.racket-lang.org/guide/module-basics.html" target="_blank">http://docs.racket-lang.org/guide/module-basics.html</a><br>
<br>
If you can show us what you're doing, we may be able to identify where<br>
the problem is coming from.<br>
</blockquote></div><br></div></div></div></div></div></div>