Re: [racket] want to pass argument via terminal in linux

2013-03-20 Thread Boshra Nabaei
Wow! finally it works now!! Thanks a lot! best group ever seen! On Wed, Mar 20, 2013 at 12:41 PM, Danny Yoo wrote: > On Wed, Mar 20, 2013 at 1:30 PM, J. Ian Johnson wrote: > > You'll want to look at dynamic-require for this. Require forms do not > accept arbitrary Racket expressions because t

Re: [racket] want to pass argument via terminal in linux

2013-03-20 Thread Danny Yoo
On Wed, Mar 20, 2013 at 1:30 PM, J. Ian Johnson wrote: > You'll want to look at dynamic-require for this. Require forms do not accept > arbitrary Racket expressions because they are used at compile time. Hi Boshra, See the very bottom of: http://docs.racket-lang.org/guide/mk-namespace.htm

Re: [racket] want to pass argument via terminal in linux

2013-03-20 Thread J. Ian Johnson
, 2013 3:26:51 PM GMT -05:00 US/Canada Eastern Subject: Re: [racket] want to pass argument via terminal in linux Thanks a lot!! it works but small problem: --- in command line: racket program.rkt test-case.rkt --

Re: [racket] want to pass argument via terminal in linux

2013-03-20 Thread Boshra Nabaei
Thanks a lot!! it works but small problem: --- *in command line: * racket program.rkt test-case.rkt -- *in program.rkt:* (define case (current-command-line-arguments)) (display case) (require case) -

Re: [racket] want to pass argument via terminal in linux

2013-03-20 Thread Danny Yoo
On Wed, Mar 20, 2013 at 7:34 AM, Boshra Nabaei wrote: > Thanks a lot Danny! > Now after inputting string(the name if he test-case file) I want to require > that. It finds it, but still doesn't recognize my list defined in there. > When I use (provide), racket doesn't know (provide). > > how can I

Re: [racket] want to pass argument via terminal in linux

2013-03-19 Thread Danny Yoo
> I need to pass a file name as a parameter to my program (e.g. test- > case1.rkt). in that file I just have a list variable. > > I want to do it via terminal in this way: > --- > racket ./Desktop/a3/1/a3-FC.rkt ./Desktop/a3/1/test-case1.r

[racket] want to pass argument via terminal in linux

2013-03-19 Thread Boshra Nabaei
Hello, I need to pass a file name as a parameter to my program (e.g. test- case1.rkt). in that file I just have a list variable. I want to do it via terminal in this way: --- racket ./Desktop/a3/1/a3-FC.rkt ./Desktop/a3/1/test-case1.rkt -